// 文档 https://github.com/hooke007/MPV_lazy/wiki/4_GLSL

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!WIDTH LUMA.w 4 *
//!HEIGHT LUMA.h 4 *
//!COMPONENTS 1
//!BIND LUMA
//!SAVE LANCZOS3
//!DESC [AiUpscale_HQ_4x_Photo] lanczos3

#define FIX(c)		max(abs(c), 1e-5)
#define PI		3.141592653

vec3 weight3(float x)
{
    vec3 s = FIX(2.0 * PI * vec3(x - 1.5, x - 0.5, x + 0.5));
    return sin(s) * sin(s / 3.0) / (s * s);
}

float line_run(float ypos, vec3 xpos1, vec3 xpos2, vec3 linetaps1, vec3 linetaps2)
{
    return float(LUMA_tex(vec2(xpos1.r, ypos))) * linetaps1.r + float(LUMA_tex(vec2(xpos1.g, ypos))) * linetaps2.r + float(LUMA_tex(vec2(xpos1.b, ypos))) * linetaps1.g + float(LUMA_tex(vec2(xpos2.r, ypos))) * linetaps2.g + float(LUMA_tex(vec2(xpos2.g, ypos))) * linetaps1.b + float(LUMA_tex(vec2(xpos2.b, ypos))) * linetaps2.b;
}

vec4 hook()
{
    vec2 pos = LUMA_pos + LUMA_pt * 0.5;
    vec2 f = fract(pos / LUMA_pt);

    vec3 linetaps1 = weight3(0.5 - f.x * 0.5);
    vec3 linetaps2 = weight3(1.0 - f.x * 0.5);
    vec3 columntaps1 = weight3(0.5 - f.y * 0.5);
    vec3 columntaps2 = weight3(1.0 - f.y * 0.5);

    float suml = dot(linetaps1, vec3(1.0)) + dot(linetaps2, vec3(1.0));
    float sumc = dot(columntaps1, vec3(1.0)) + dot(columntaps2, vec3(1.0));
    linetaps1 /= suml;
    linetaps2 /= suml;
    columntaps1 /= sumc;
    columntaps2 /= sumc;

    vec2 xystart = (-2.5 - f) * LUMA_pt + pos;
    vec3 xpos1 = vec3(xystart.x, xystart.x + LUMA_pt.x, xystart.x + LUMA_pt.x * 2.0);
    vec3 xpos2 = vec3(xystart.x + LUMA_pt.x * 3.0, xystart.x + LUMA_pt.x * 4.0, xystart.x + LUMA_pt.x * 5.0);

    return vec4(line_run(xystart.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps1.r + line_run(xystart.y + LUMA_pt.y, xpos1, xpos2, linetaps1, linetaps2) * columntaps2.r + line_run(xystart.y + LUMA_pt.y * 2.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.g + line_run(xystart.y + LUMA_pt.y * 3.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.g + line_run(xystart.y + LUMA_pt.y * 4.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps1.b + line_run(xystart.y + LUMA_pt.y * 5.0 , xpos1, xpos2, linetaps1, linetaps2) * columntaps2.b, 0, 0, 0);
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE1
//!DESC [AiUpscale_HQ_4x_Photo] feature map 1

vec4 hook()
{
vec4 res = vec4(-0.200376749038696,0.026079464703798,-0.032736174762249,-0.000361746089766);
res += vec4(-0.062261853367090,-0.019040368497372,-0.031882148236036,-0.042323585599661) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.127766713500023,0.071828126907349,0.020707735791802,-0.030100423842669) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.180888578295708,-0.135599270462990,0.076683461666107,0.015100362710655) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.054220780730247,-0.016335008665919,-0.052458509802818,0.048079468309879) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.076599150896072,0.049186103045940,-0.022704118862748,-0.022301597520709) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.006932193413377,0.000287213741103,-0.081667415797710,0.020127488300204) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.191820055246353,-0.344259738922119,0.712652862071991,0.167247980833054) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.063959181308746,-0.113767288625240,-0.516542255878448,-0.029175566509366) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.159933164715767,-0.465970754623413,0.021107111126184,-0.103557482361794) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.068674579262733,-0.052158795297146,-0.052440486848354,0.034070555120707) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.124916471540928,0.014962456189096,0.085830718278885,0.102624110877514) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.007242054212838,-0.124988898634911,-0.759528458118439,0.348287045955658) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.127335608005524,0.371425300836563,1.054921984672546,0.067224875092506) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.034922931343317,0.609905898571014,0.347426503896713,-0.071484096348286) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.112593673169613,-0.043496794998646,0.061440825462341,-0.045828979462385) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.017577720806003,-0.031317505985498,0.038676630705595,-0.133965328335762) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.078422725200653,-0.194766357541084,-0.072589911520481,-0.487033456563950) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.128678724169731,-0.043057251721621,-0.455291092395782,-0.047829084098339) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.130176827311516,0.179543375968933,-0.297802627086639,0.156380310654640) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.077909678220749,0.030062053352594,-0.011208250187337,0.056334171444178) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.075528725981712,0.052058808505535,-0.033697009086609,0.060831766575575) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.127278953790665,-0.040233075618744,-0.056102976202965,-0.088421039283276) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.134776771068573,0.059214651584625,0.103321723639965,0.021085558459163) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.153439879417419,-0.034916706383228,-0.082889787852764,0.002849957905710) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.006864933762699,0.088274605572224,-0.013343758881092,0.004403296858072) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE2
//!DESC [AiUpscale_HQ_4x_Photo] feature map 2

vec4 hook()
{
vec4 res = vec4(0.016990156844258,0.064884066581726,-0.048452351242304,-0.013833335600793);
res += vec4(-0.078615635633469,0.054942898452282,0.004426349420100,0.029947204515338) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(0.026084514334798,-0.113524496555328,-0.075862735509872,0.070616841316223) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.078159496188164,0.124465696513653,0.074222996830940,-0.073996268212795) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.020642096176744,0.039771791547537,0.077383026480675,-0.062156025320292) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.002679373370484,0.032312329858541,-0.009301207959652,-0.048651821911335) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.071988604962826,-0.013008248992264,0.046238310635090,-0.083795547485352) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.125757753849030,0.155313044786453,-0.365702211856842,-0.323141098022461) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.131561785936356,-0.091013543307781,0.795893728733063,-0.065348006784916) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.005509596783668,-0.056437268853188,-0.155321672558784,-0.055407758802176) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.056484404951334,-0.025804724544287,0.099180988967419,-0.013556832447648) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.018387876451015,0.038917690515518,-0.099385157227516,-0.095613330602646) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.099453918635845,0.175421670079231,-0.300844818353653,0.159056201577187) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(-0.265523076057434,-0.078139103949070,-0.274028956890106,-0.226281419396400) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.430649429559708,-0.126696869730949,0.155177637934685,0.145113363862038) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.004419304896146,-0.055029816925526,0.027890978381038,-0.053336568176746) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.213704615831375,0.025091303512454,-0.070612244307995,0.108866959810257) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.142453148961067,-0.011132785119116,0.037310913205147,0.377414613962173) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.211374446749687,-0.123623214662075,0.457266211509705,0.203264817595482) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.232295408844948,0.003506684442982,0.003704320173711,-0.093129768967628) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.045804087072611,-0.057637516409159,-0.026833368465304,0.059697944670916) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.082756973803043,-0.012460032477975,0.025781625881791,0.020606754347682) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.044310476630926,-0.040346104651690,-0.105692677199841,0.043501857668161) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.124624505639076,-0.047640647739172,-0.099598579108715,0.055266629904509) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.197649553418159,0.013740868307650,-0.084015496075153,0.020930239930749) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.041437678039074,0.012243359349668,0.003605361795053,-0.014872821047902) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE3
//!DESC [AiUpscale_HQ_4x_Photo] feature map 3

vec4 hook()
{
vec4 res = vec4(0.000660103571136,0.240242987871170,-0.521180868148804,-0.297318518161774);
res += vec4(0.016609339043498,0.062163185328245,0.046090777963400,0.014323662035167) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.170571804046631,-0.106797911226749,0.021527193486691,0.048699326813221) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.155421763658524,-0.125857964158058,0.030467957258224,-0.052972782403231) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.083654768764973,-0.084308907389641,-0.017200626432896,0.055849630385637) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.017219819128513,0.021082902327180,-0.011947460472584,-0.031696397811174) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.046858750283718,-0.003609029809013,-0.005356537178159,-0.133728504180908) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(-0.027774645015597,-0.210982918739319,0.150541350245476,0.007311815861613) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.047930229455233,-0.095032900571823,0.014558664523065,-0.011359904892743) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.118771433830261,-0.065694324672222,-0.104216888546944,-0.013153337873518) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.210723295807838,-0.054241649806499,0.067468389868736,0.035309381783009) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.124566413462162,-0.070908673107624,-0.081491500139236,0.059847842901945) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.052666887640953,-0.250362873077393,0.438109904527664,0.021599423140287) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.037754241377115,-0.268065363168716,0.368179202079773,0.751266300678253) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.073491193354130,-0.154656469821930,0.193058580160141,0.125834524631500) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.339276671409607,-0.037431627511978,0.011094990186393,0.046115692704916) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.001039319206029,-0.048795681446791,-0.040111072361469,0.042815823107958) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.067364349961281,-0.154687836766243,0.016032805666327,-0.152182027697563) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.006854481995106,-0.039098221808672,0.143582105636597,0.256136775016785) * float(LUMA_texOff(vec2(1,0)));
res += vec4(0.081639654934406,-0.236650899052620,-0.069196864962578,-0.205042198300362) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.046132348477840,0.088738597929478,-0.004201263189316,0.015289559960365) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.040098547935486,0.056249286979437,-0.000411173299653,0.041150804609060) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.140442490577698,-0.105410218238831,0.039451185613871,-0.006147490348667) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.091357663273811,-0.033744715154171,0.026662249118090,-0.054416347295046) * float(LUMA_texOff(vec2(2,0)));
res += vec4(-0.182202592492104,-0.083044424653053,0.011790380813181,-0.035863086581230) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.015326207503676,-0.033974923193455,0.027391612529755,0.008922341279685) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE4
//!DESC [AiUpscale_HQ_4x_Photo] feature map 4

vec4 hook()
{
vec4 res = vec4(-0.453068196773529,-0.002467950806022,-0.061201199889183,-0.124363437294960);
res += vec4(-0.040678206831217,0.033685099333525,-0.019070433452725,-0.014216861687601) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.027288082987070,-0.050805322825909,0.049489613622427,0.086778737604618) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.000320593942888,-0.042942240834236,0.013002675026655,-0.058564543724060) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.062974691390991,0.108276315033436,-0.029186945408583,0.000314836914185) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.033160038292408,-0.011182573623955,-0.007545999251306,0.007510080467910) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.072382852435112,-0.050877142697573,0.028963351622224,-0.052917663007975) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.040528926998377,0.023722521960735,-0.134360164403915,0.027601130306721) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.476709991693497,-0.503461897373199,-0.708075404167175,-0.000116496834380) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.008829295635223,0.568950116634369,0.257205843925476,-0.140936091542244) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.144815579056740,-0.092979378998280,-0.054056942462921,-0.010781035758555) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(0.053479883819818,-0.047141056507826,-0.137638419866562,0.314180850982666) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(0.260837823152542,0.046589862555265,0.394176036119461,0.518097937107086) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.817059636116028,-0.570224940776825,0.987755835056305,-0.155699551105499) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.069649897515774,0.575081229209900,-0.152156800031662,-0.046441435813904) * float(LUMA_texOff(vec2(0,1)));
res += vec4(0.124280758202076,0.144334062933922,-0.086756996810436,-0.130745053291321) * float(LUMA_texOff(vec2(0,2)));
res += vec4(-0.034034390002489,0.016270967200398,0.086224250495434,-0.022481909021735) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.124008357524872,0.078279145061970,-0.296497702598572,0.287219226360321) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.062759660184383,-0.381290167570114,0.664934456348419,0.011331063695252) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.122575640678406,0.245805814862251,-0.622180104255676,-0.134312272071838) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.072469241917133,-0.088195033371449,0.067056603729725,-0.054952919483185) * float(LUMA_texOff(vec2(1,2)));
res += vec4(0.020264400169253,-0.000528342381585,0.009722154587507,-0.123559825122356) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.063721999526024,-0.018769023939967,-0.011228989809752,0.087609134614468) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.018403103575110,0.073868125677109,-0.144620522856712,-0.088183283805847) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.044361010193825,-0.027012908831239,0.040504168719053,0.030720384791493) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.020894825458527,0.012209706008434,-0.026730440557003,-0.039024770259857) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE5
//!DESC [AiUpscale_HQ_4x_Photo] feature map 5

vec4 hook()
{
vec4 res = vec4(0.019264306873083,-0.035813193768263,0.206999510526657,0.018525516614318);
res += vec4(0.003949095960706,0.011602861806750,0.086608000099659,0.009058837778866) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.015682395547628,-0.078791365027428,-0.086995556950569,-0.027067709714174) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(-0.122932381927967,-0.025794556364417,-0.049696248024702,-0.095615461468697) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(-0.071860879659653,-0.022126706317067,-0.003931079059839,-0.035193875432014) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(0.050419524312019,0.164206162095070,0.054127000272274,0.026604698970914) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(0.001244608196430,-0.065927974879742,-0.012744110077620,0.066441833972931) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.374446302652359,0.079620480537415,0.061464007943869,0.034429356455803) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(-0.541982352733612,-0.067458875477314,0.235922843217850,0.099342145025730) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(-0.249702438712120,0.006098811980337,-0.001839182572439,0.024617208167911) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(-0.003375920001417,0.011473510414362,0.039702501147985,-0.070305712521076) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.040110960602760,0.055471640080214,-0.129140749573708,0.054622553288937) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.458063721656799,-0.177805259823799,0.260741919279099,-0.053817786276340) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.173163846135139,0.352598965167999,-0.745238006114960,-0.992392718791962) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.541061460971832,0.006998194847256,-0.202084198594093,0.566641449928284) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.007940511219203,-0.106822542846203,-0.006436846684664,-0.056566506624222) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.014194073155522,-0.037434481084347,0.102443516254425,0.064542070031166) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(0.202546626329422,-0.104553274810314,-0.074939787387848,-0.070390671491623) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(0.330645292997360,0.114254347980022,0.063211791217327,0.798245310783386) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.346863001585007,0.031904060393572,-0.106123149394989,-0.422735303640366) * float(LUMA_texOff(vec2(1,1)));
res += vec4(0.082322493195534,-0.100500017404556,0.025558914989233,0.090799517929554) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.020794996991754,0.098594583570957,0.038108717650175,-0.044724855571985) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(-0.087733723223209,0.124067150056362,0.121821455657482,0.017044765874743) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(0.066423274576664,-0.221368387341499,-0.104025818407536,0.031364634633064) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.104518085718155,-0.004936492070556,0.023394186049700,0.011792695149779) * float(LUMA_texOff(vec2(2,1)));
res += vec4(-0.030999630689621,0.063423089683056,-0.005034009926021,0.004523287992924) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND LUMA
//!SAVE FEATURE6
//!DESC [AiUpscale_HQ_4x_Photo] feature map 6

vec4 hook()
{
vec4 res = vec4(-0.041248872876167,0.056046206504107,-0.088635511696339,0.021915962919593);
res += vec4(0.100165285170078,-0.001541474135593,0.031865447759628,0.057990226894617) * float(LUMA_texOff(vec2(-2,-2)));
res += vec4(-0.069509357213974,0.050710953772068,-0.060879420489073,0.014413504861295) * float(LUMA_texOff(vec2(-2,-1)));
res += vec4(0.230540201067924,0.215404123067856,0.023084403946996,-0.141553670167923) * float(LUMA_texOff(vec2(-2,0)));
res += vec4(0.001346953446046,-0.044251512736082,-0.045194782316685,0.118684940040112) * float(LUMA_texOff(vec2(-2,1)));
res += vec4(-0.021352417767048,-0.012304211966693,-0.027352774515748,0.006990624591708) * float(LUMA_texOff(vec2(-2,2)));
res += vec4(-0.108657762408257,-0.120997026562691,-0.037467900663614,-0.092452444136143) * float(LUMA_texOff(vec2(-1,-2)));
res += vec4(0.073573581874371,-0.230997249484062,-0.254138380289078,0.164916947484016) * float(LUMA_texOff(vec2(-1,-1)));
res += vec4(0.199154123663902,0.015538468025625,-0.049681246280670,0.213335931301117) * float(LUMA_texOff(vec2(-1,0)));
res += vec4(0.050170078873634,0.016146596521139,-0.399436682462692,-0.078021153807640) * float(LUMA_texOff(vec2(-1,1)));
res += vec4(0.029294753447175,0.141122758388519,-0.024589961394668,-0.029766086488962) * float(LUMA_texOff(vec2(-1,2)));
res += vec4(-0.042543224990368,-0.032264325767756,0.170509904623032,-0.120800100266933) * float(LUMA_texOff(vec2(0,-2)));
res += vec4(-0.119286835193634,-0.218857780098915,-0.086358197033405,0.085165165364742) * float(LUMA_texOff(vec2(0,-1)));
res += vec4(0.027420101687312,0.099010795354843,1.101642847061157,0.290622949600220) * float(LUMA_texOff(vec2(0,0)));
res += vec4(0.121556140482426,-0.005157931242138,-0.269545704126358,0.240669563412666) * float(LUMA_texOff(vec2(0,1)));
res += vec4(-0.130731150507927,-0.021472178399563,0.017546422779560,-0.060488145798445) * float(LUMA_texOff(vec2(0,2)));
res += vec4(0.142145276069641,0.072803728282452,-0.060886133462191,0.006394622381777) * float(LUMA_texOff(vec2(1,-2)));
res += vec4(-0.049078080803156,0.065356343984604,0.205872297286987,-0.008346058428288) * float(LUMA_texOff(vec2(1,-1)));
res += vec4(-0.226906940340996,-0.015283326618373,0.107773952186108,-0.432334214448929) * float(LUMA_texOff(vec2(1,0)));
res += vec4(-0.102603517472744,-0.084477059543133,-0.160685658454895,-0.142014831304550) * float(LUMA_texOff(vec2(1,1)));
res += vec4(-0.040670752525330,-0.084489867091179,-0.119432702660561,0.037007592618465) * float(LUMA_texOff(vec2(1,2)));
res += vec4(-0.060687694698572,-0.066520132124424,-0.007553729228675,0.049551878124475) * float(LUMA_texOff(vec2(2,-2)));
res += vec4(0.082024984061718,0.034779980778694,0.040334809571505,-0.147827968001366) * float(LUMA_texOff(vec2(2,-1)));
res += vec4(-0.160355687141418,-0.052725289016962,0.023845860734582,0.027273062616587) * float(LUMA_texOff(vec2(2,0)));
res += vec4(0.014523769728839,0.131769403815269,0.098594993352890,-0.122954748570919) * float(LUMA_texOff(vec2(2,1)));
res += vec4(0.120296396315098,-0.028767229989171,-0.041266970336437,0.010740767233074) * float(LUMA_texOff(vec2(2,2)));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_4x_Photo] mapping 1_1

vec4 hook()
{
vec4 res = vec4(-0.145504385232925,-0.128780856728554,-0.075439311563969,-0.216621816158295);
res += mat4(-0.020893286913633,-0.052342452108860,0.148837327957153,0.113074257969856,0.001496986835264,0.056081116199493,-0.006725584156811,-0.021084390580654,0.065775729715824,0.143367782235146,-0.199842929840088,-0.097501598298550,-0.007561067584902,-0.004740500822663,-0.023438060656190,0.009944717399776) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.058009695261717,-0.007339907810092,-0.089366815984249,-0.078292757272720,-0.005637185182422,0.024263489991426,0.022909257560968,-0.124342709779739,0.060060296207666,0.212564453482628,-0.141689985990524,0.027749992907047,-0.027620917186141,0.094675756990910,-0.053492937237024,0.063829712569714) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.008561262860894,-0.023495266214013,0.020904796198010,0.036567043513060,-0.003730167169124,-0.053834397345781,-0.124887645244598,-0.038988742977381,0.059905283153057,-0.005243659950793,-0.009286853484809,0.098334804177284,0.063714817166328,0.151252925395966,-0.037550494074821,0.045841496437788) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.005316652823240,0.016725046560168,-0.024081595242023,-0.034492820501328,-0.017152728512883,-0.185318514704704,-0.083697676658630,0.105287738144398,0.022383097559214,-0.112575255334377,0.017896689474583,0.047671422362328,-0.009166709147394,0.049847196787596,-0.023993378505111,0.014355462044477) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.049755942076445,-0.058653250336647,0.001672457554378,-0.003873024601489,-0.043744128197432,-0.089564882218838,-0.054202008992434,0.012678590603173,-0.006896175909787,-0.151094675064087,0.051518689841032,0.112984165549278,0.038047317415476,-0.016584485769272,-0.102739490568638,0.002803832758218) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.056750148534775,-0.046605113893747,0.026144940406084,-0.078328199684620,0.030891213566065,-0.056957788765430,0.008802895434201,-0.082361593842506,-0.106570400297642,0.123342849314213,-0.089714691042900,-0.049842547625303,0.025897094979882,-0.044242918491364,-0.001573750865646,-0.004625402856618) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.043258987367153,-0.026477055624127,0.038127876818180,0.028309214860201,0.020880524069071,-0.004977945238352,0.113002993166447,-0.207053005695343,-0.048845354467630,-0.032532516866922,0.281517565250397,0.024904932826757,-0.024681493639946,0.000670793408062,0.032308951020241,-0.045838609337807) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.098561331629753,-0.024692153558135,-0.004306357819587,-0.131724968552589,0.070487543940544,-0.071633279323578,-0.014504228718579,-0.064401611685753,-0.153209701180458,0.029982106760144,-0.069981038570404,-0.136159867048264,-0.019951852038503,-0.054925076663494,0.018905829638243,-0.027125790715218) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.059619531035423,0.047533478587866,-0.086256548762321,0.000829554162920,0.178120732307434,-0.028051011264324,-0.019485920667648,-0.044986985623837,-0.025117754936218,-0.120858840644360,-0.054838277399540,0.070679232478142,-0.140904486179352,-0.098485298454762,0.154322251677513,-0.075138173997402) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.014659112319350,0.073900677263737,-0.051928371191025,0.040042925626040,-0.011135871522129,0.007991274818778,-0.079970836639404,-0.126961901783943,-0.024790422990918,-0.039789643138647,-0.070687204599380,0.076023496687412,-0.011599043384194,0.017683193087578,0.087144576013088,-0.012646699324250) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.026442091912031,-0.023383537307382,-0.022008858621120,0.060842074453831,0.007874156348407,0.004087343811989,-0.005436206236482,0.012876427732408,-0.011525926180184,-0.110601030290127,0.063403017818928,0.142151936888695,0.001112318132073,-0.092662006616592,0.025833329185843,-0.139053612947464) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.006033704150468,-0.010661390610039,-0.060362685471773,-0.044638123363256,0.042578168213367,0.060462772846222,-0.018010640516877,-0.122690133750439,-0.077751271426678,0.003856459166855,-0.062494546175003,-0.192642197012901,-0.042906407266855,-0.112833134829998,-0.082619078457355,-0.045419421046972) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.038791298866272,-0.079921133816242,0.045244161039591,0.071815416216850,0.013650570996106,0.038301397114992,-0.010300348512828,-0.061564601957798,-0.025691809132695,-0.025897156447172,0.062138643115759,-0.088527329266071,-0.005303148180246,-0.057578898966312,-0.014038120396435,0.054303757846355) * FEATURE2_texOff(vec2(0,-1));
res += mat4(-0.074315555393696,0.053578518331051,0.068943239748478,-0.170062363147736,0.010655169375241,0.006743219215423,-0.079429671168327,-0.067882724106312,-0.079684302210808,0.130549028515816,-0.000068115776230,-0.164997920393944,-0.005505068693310,-0.029652761295438,0.002829742850736,-0.078272983431816) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.047608505934477,-0.023768147453666,-0.037404824048281,0.040794115513563,-0.025377638638020,0.007049190811813,-0.013889298774302,-0.050949845463037,-0.023240504786372,0.040042642503977,-0.045503351837397,-0.069950193166733,0.019087318331003,-0.078701391816139,0.083212330937386,-0.011991609819233) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.091744393110275,-0.010059966705739,-0.014800009317696,-0.085324093699455,-0.011435180902481,0.013783669099212,-0.076433397829533,-0.110499195754528,0.035152945667505,0.102586127817631,-0.077880971133709,0.033996429294348,0.045915119349957,-0.037972748279572,0.017532128840685,-0.104364499449730) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.010436110198498,-0.043111711740494,-0.107566259801388,0.052201140671968,-0.057204771786928,0.046838190406561,-0.079885721206665,-0.058439694344997,0.127876728773117,0.005688877776265,0.027104441076517,0.187361553311348,0.073241002857685,0.002040268154815,0.009061644785106,-0.034733187407255) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.157196909189224,0.029290487989783,0.003334664041176,-0.037504483014345,-0.102936200797558,0.000350755522959,-0.004447058774531,-0.025793988257647,0.160083651542664,0.083794489502907,-0.047876469790936,-0.099267303943634,0.168446570634842,0.070224672555923,0.007130614016205,0.029052775353193) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.011060670949519,-0.022403476759791,-0.109595432877541,0.023539101704955,0.010119662620127,0.060506694018841,-0.015629006549716,-0.000037947480450,0.019800625741482,0.108858585357666,-0.035694479942322,-0.068968728184700,0.001469337963499,0.069224007427692,-0.082365132868290,-0.074428662657738) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.025568990036845,-0.092324063181877,0.042329005897045,0.102271355688572,0.022547636181116,-0.007347299717367,0.082730181515217,0.043166901916265,0.014345438219607,0.055212080478668,-0.078700318932533,-0.025341749191284,0.018645789474249,0.082497365772724,-0.101055935025215,-0.041558530181646) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.039661802351475,0.021172830834985,0.096549741923809,-0.090740039944649,0.028403460979462,0.070698343217373,-0.090121954679489,-0.036597110331059,0.006789430975914,0.042320128530264,0.026395443826914,0.070693403482437,-0.029023161157966,0.042614519596100,-0.050690401345491,-0.047902557998896) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.084008209407330,-0.046418137848377,0.035542543977499,-0.111048795282841,0.010251861065626,0.107842400670052,-0.073467992246151,-0.059137903153896,0.044899303466082,-0.007605409715325,0.093261867761612,0.016986422240734,0.010569864884019,-0.070198774337769,0.002369328867644,0.007451904006302) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.089321590960026,0.021732175722718,0.042171489447355,0.011445535346866,0.015285022556782,0.024730550125241,0.076061271131039,0.073784157633781,0.018439235165715,-0.077163234353065,-0.052974548190832,-0.091207064688206,-0.033573679625988,-0.133632004261017,0.041038766503334,0.016976356506348) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.009159076027572,0.066241942346096,-0.082489639520645,-0.075940325856209,0.004499526694417,0.032231722027063,0.004482677672058,0.037151940166950,0.019847761839628,-0.038720563054085,0.009873791597784,0.034863617271185,-0.105995580554008,-0.013029498048127,-0.105921551585197,-0.099481582641602) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.034828979521990,0.086132720112801,-0.060169380158186,0.002939225640148,0.021137399598956,-0.014983325265348,0.025723095983267,-0.042854193598032,0.022269373759627,-0.006838646251708,0.019786980003119,-0.046368025243282,0.017408067360520,-0.031859148293734,0.096935719251633,-0.049488849937916) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.174393415451050,0.002133710077032,0.199218764901161,0.011581541970372,0.005396340508014,-0.016026830300689,-0.103583842515945,0.052089169621468,0.037550698965788,-0.038075745105743,0.065084628760815,-0.058405961841345,-0.008147124201059,-0.037768233567476,0.060161359608173,-0.101825565099716) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.045373953878880,-0.078136257827282,0.050636481493711,-0.117728456854820,-0.001443248242140,0.040207289159298,-0.119230538606644,0.002893778961152,0.092985972762108,0.023546300828457,0.023266749456525,-0.015948764979839,0.065030649304390,0.009821001440287,-0.069277316331863,-0.018210357055068) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.012121042236686,0.136750340461731,-0.043731361627579,-0.057232499122620,0.035975277423859,-0.045113533735275,-0.007800119463354,0.088065311312675,-0.001228850102052,0.111990585923195,-0.007544065359980,-0.148780792951584,0.001779249054380,0.066990204155445,-0.037774074822664,-0.067773498594761) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.029045436531305,0.156441688537598,-0.145658612251282,0.010355618782341,-0.078167408704758,-0.028230110183358,0.025322809815407,-0.090164236724377,0.060989432036877,0.053126424551010,-0.128514245152473,-0.009153504855931,0.018850523978472,0.004594982601702,-0.032944090664387,-0.086637303233147) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.032205555588007,0.116631589829922,0.052014749497175,0.022207658737898,-0.111766003072262,0.041368938982487,-0.088393494486809,-0.017586056143045,-0.056728802621365,0.081558264791965,0.002242472721264,-0.018902549520135,0.002219165908173,-0.016038991510868,-0.065986201167107,0.121174909174442) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.012923144735396,0.002924513537437,-0.031946521252394,-0.054345563054085,-0.009589970111847,0.014726502820849,-0.079827696084976,0.003309533465654,0.034799266606569,-0.080983772873878,-0.000111632791231,0.111040040850639,-0.015385015867651,-0.003477304009721,-0.025666691362858,0.071705512702465) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.013685143552721,-0.074098214507103,-0.056116662919521,0.009027578867972,-0.091653391718864,0.017764007672668,-0.021497305482626,-0.091744937002659,-0.042536713182926,-0.259574025869370,0.102596290409565,0.126936122775078,-0.029838221147656,-0.011086741462350,-0.081124752759933,-0.044311836361885) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.036827322095633,-0.026321869343519,-0.038737688213587,-0.105608426034451,0.044673945754766,0.002881214721128,-0.015525560826063,0.077350042760372,-0.247981563210487,-0.111767694354057,-0.178664267063141,-0.090227872133255,-0.052876651287079,-0.086606122553349,0.100910544395447,0.065224431455135) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.001038766116835,-0.072745576500893,0.091109305620193,0.055474262684584,-0.060120571404696,-0.030377304181457,-0.134387999773026,0.020524153485894,0.010415416210890,-0.063729584217072,0.227562576532364,0.023933082818985,0.019859816879034,-0.020300237461925,0.017416698858142,-0.032013773918152) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.008727628737688,-0.118945129215717,0.021673928946257,-0.052026897668839,-0.001172899268568,0.025378912687302,-0.090717658400536,-0.172542393207550,-0.094759240746498,0.073785789310932,0.101369395852089,-0.200080186128616,-0.007207851856947,-0.022006915882230,0.040051046758890,0.046137556433678) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.002218127949163,-0.006774543784559,-0.050869405269623,0.001483812113293,0.064448356628418,-0.002398689510301,-0.013244612142444,0.029456570744514,0.079054392874241,0.027403855696321,0.064162261784077,0.128110885620117,0.058100461959839,0.056649062782526,0.060827091336250,0.076426729559898) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.025590406730771,0.095594733953476,-0.079005852341652,-0.012873966246843,0.024977011606097,-0.069545648992062,-0.072065606713295,-0.081823967397213,-0.019303234294057,-0.043263074010611,-0.008276521228254,0.038509242236614,0.036850884556770,0.001264609745704,-0.026050940155983,-0.002867580624297) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.005084539297968,-0.044355418533087,0.034652121365070,0.045137114822865,0.040673207491636,0.013315602205694,-0.055977880954742,-0.031919419765472,0.013067505322397,-0.072625853121281,0.137894630432129,0.026581898331642,0.045033171772957,-0.206347018480301,0.247392132878304,0.074579976499081) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.020515602082014,-0.154132336378098,0.034491870552301,0.057400535792112,-0.044339228421450,0.050861094146967,0.133485734462738,-0.059066634625196,0.011463673785329,0.061683204025030,-0.050273556262255,-0.071887262165546,-0.131040573120117,-0.080597087740898,-0.073439441621304,-0.126537486910820) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.002159837400541,-0.155806750059128,0.037654161453247,0.149699121713638,0.072307646274567,-0.058603588491678,0.057666808366776,0.018505984917283,0.022924007847905,0.059917539358139,0.058972157537937,-0.033305026590824,0.067113049328327,-0.059635221958160,0.096570245921612,0.116278231143951) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.045699495822191,-0.095298737287521,0.133085116744041,-0.033879499882460,-0.082811214029789,-0.035056192427874,-0.041500337421894,-0.001044237520546,0.015733292326331,0.140164166688919,-0.045902378857136,-0.131327480077744,-0.060833260416985,0.164680600166321,0.136175990104675,-0.229100391268730) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.095015771687031,0.059292428195477,-0.083403125405312,0.048404581844807,-0.091808997094631,0.072925865650177,-0.036360092461109,0.000101877158158,0.022178294137120,-0.000060246558860,0.046843446791172,0.077709130942822,-0.028210509568453,-0.005379724316299,-0.062063496559858,0.119585208594799) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.015898358076811,0.029334440827370,0.231336340308189,-0.052883390337229,-0.019439583644271,0.031330034136772,0.091061562299728,-0.010429029352963,-0.066605091094971,0.017088474705815,-0.162332758307457,-0.054445419460535,-0.012642832472920,0.026018211618066,0.025166383013129,-0.053409278392792) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.027647437527776,0.050373010337353,-0.122961223125458,-0.096431896090508,-0.084963195025921,0.029103869572282,-0.003107679774985,-0.035253688693047,-0.042425066232681,-0.038421746343374,-0.021140892058611,0.114211328327656,0.073001921176910,-0.034627769142389,-0.164269372820854,0.102144539356232) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.295836597681046,-0.066719055175781,0.031834349036217,0.071343667805195,0.060651659965515,-0.013605454936624,0.070458725094795,0.027871724218130,-0.134397640824318,-0.025177776813507,0.102206915616989,-0.079757317900658,0.292167752981186,0.046976532787085,0.191048547625542,0.006821065675467) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.018878495320678,0.043022539466619,-0.039222549647093,-0.181015536189079,-0.026997795328498,0.031675152480602,0.002761484589428,-0.194898784160614,-0.015192046761513,0.069252744317055,0.050802938640118,-0.061194974929094,0.025154702365398,0.093256048858166,-0.027277471497655,0.136153727769852) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.078551337122917,-0.000179121823749,0.051085796207190,0.081292495131493,-0.018089273944497,-0.061367325484753,-0.057171232998371,0.044283140450716,0.034222099930048,0.084850840270519,-0.014196672476828,-0.025396265089512,0.070961542427540,0.200341537594795,-0.045969013124704,-0.070692844688892) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.012187140062451,-0.010460015386343,-0.008468867279589,-0.160049259662628,0.011964124627411,-0.050103913992643,0.036812130361795,0.020511388778687,0.071806140244007,-0.064672276377678,0.072736211121082,-0.080388009548187,0.042017225176096,0.080989003181458,-0.175793424248695,-0.019840497523546) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.092818871140480,0.006939603947103,0.079687915742397,0.075526349246502,0.025727819651365,-0.026895960792899,0.056427631527185,0.079252392053604,-0.026623388752341,-0.065615400671959,-0.042198769748211,0.080818422138691,0.016441283747554,-0.034708384424448,-0.058509342372417,-0.010575210675597) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.017393806949258,0.025486579164863,-0.030113810673356,-0.042929183691740,0.013580741360784,-0.025225050747395,0.075708314776421,0.067167580127716,0.018679359927773,-0.198062583804131,0.064982049167156,0.138240635395050,-0.017188899219036,-0.020659407600760,-0.120514214038849,-0.014244914986193) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.059000063687563,0.033163506537676,0.028288178145885,0.032295253127813,0.013070855289698,-0.019788878038526,0.003667789511383,0.013063028454781,-0.056931097060442,-0.026716811582446,-0.034578096121550,-0.106310009956360,-0.120069153606892,0.027103399857879,0.017172059044242,0.023435438051820) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.056378409266472,0.034134648740292,-0.121164008975029,-0.080558128654957,-0.048382613807917,-0.028129914775491,0.031800393015146,-0.032506484538317,0.017583543434739,-0.095253199338913,0.260007500648499,-0.016689132899046,-0.031993076205254,0.003361186478287,0.011157046072185,-0.059350349009037) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.150540009140968,0.030722195282578,-0.086274497210979,0.072322286665440,-0.024632146582007,0.047811798751354,0.006932477001101,0.026543974876404,-0.001704668160528,-0.037771806120872,0.152418509125710,-0.082626685500145,-0.144968882203102,-0.057256802916527,0.019583350047469,-0.003293991787359) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.117686294019222,0.078892618417740,-0.046931762248278,0.059874497354031,0.031504943966866,0.046905037015676,-0.133107170462608,0.030381508171558,0.046182535588741,-0.030797690153122,-0.118012964725494,0.048812363296747,-0.120016075670719,0.002932076342404,0.011713515967131,0.024138508364558) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.061188686639071,-0.116210334002972,0.297944575548172,0.158536508679390) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_4x_Photo] mapping 1_2

vec4 hook()
{
vec4 res = vec4(-0.177493542432785,0.065418958663940,-0.092162989079952,-0.094305276870728);
res += mat4(-0.030327621847391,0.005424329545349,0.025732137262821,-0.020523065701127,-0.078044369816780,-0.008376271463931,0.111818268895149,0.023428792133927,0.091452650725842,-0.080150201916695,-0.076281353831291,0.039980709552765,0.030456136912107,-0.014982176944613,0.032962024211884,-0.164770588278770) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.108064211905003,0.003650912083685,-0.009060131385922,-0.000197211411432,-0.035716060549021,-0.049377948045731,-0.041890513151884,0.055673032999039,0.152277156710625,-0.063614629209042,0.037155315279961,0.076914399862289,0.018931008875370,0.034516189247370,0.037703372538090,0.037616062909365) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.087817139923573,0.026887483894825,0.004015193320811,0.059794507920742,0.051210522651672,0.053478267043829,-0.069675296545029,0.090580984950066,0.061837494373322,-0.008327776566148,-0.115072466433048,-0.027736295014620,0.146574556827545,0.036426376551390,-0.008216213434935,0.136010542511940) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.008202287368476,-0.028478881344199,-0.033681873232126,0.023395249620080,-0.271010100841522,0.088240951299667,-0.062163993716240,-0.109818466007710,-0.085937805473804,0.086424551904202,0.071490705013275,-0.218992099165916,-0.002293486148119,0.033589903265238,-0.019777692854404,-0.001256414339878) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.124210707843304,-0.064122810959816,-0.019618023186922,-0.079425521194935,-0.137506768107414,-0.000510237878188,0.043506056070328,0.016394052654505,-0.372397482395172,0.323672324419022,-0.049815699458122,0.207739248871803,-0.022435514256358,0.068813756108284,0.034425232559443,-0.118365950882435) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.004764914978296,-0.043704036623240,0.031794600188732,0.043405536562204,-0.006843600887805,0.057827290147543,0.024636646732688,0.049804106354713,0.114297173917294,0.146936416625977,0.015490904450417,0.101817190647125,-0.153445929288864,0.105083115398884,0.032181516289711,0.027104035019875) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.014985755085945,-0.026189731433988,0.039172764867544,0.063342869281769,0.106139287352562,0.064755216240883,-0.067960880696774,-0.008788736537099,-0.051602054387331,0.033208329230547,0.002760866191238,0.058128613978624,0.038475364446640,-0.022158229723573,-0.015536727383733,0.144492477178574) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.017315693199635,-0.008605532348156,0.000746507954318,0.026286324486136,0.113300301134586,0.051179926842451,0.038085993379354,-0.127143532037735,0.038364455103874,0.078306294977665,-0.077384650707245,-0.390984535217285,-0.008982912637293,0.003091272199526,0.011022295802832,-0.046618744730949) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.095564685761929,0.083953380584717,0.050447471439838,-0.005294248461723,0.113062441349030,0.145772397518158,0.055109541863203,-0.037638451904058,-0.199251815676689,-0.101042643189430,0.133366972208023,0.079923883080482,-0.040436733514071,-0.042306084185839,0.060089398175478,-0.036123927682638) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.046719189733267,0.032204195857048,0.024329414591193,0.001283602556214,0.038750950247049,-0.005740833934397,-0.023264052346349,-0.004924796521664,0.010699403472245,0.033296227455139,0.066575713455677,0.092406347393990,-0.014961722306907,-0.006102777086198,0.024979216977954,0.104840867221355) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.129898518323898,0.023924488574266,-0.038792841136456,0.066576689481735,0.108511760830879,-0.036708995699883,0.036559741944075,0.004957756958902,-0.194344013929367,0.111823655664921,-0.020649528130889,-0.028185840696096,-0.063041590154171,0.046620160341263,-0.032318010926247,-0.046144541352987) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.030159531161189,0.017971454188228,-0.008946931920946,-0.026583351194859,0.019772317260504,-0.015243750065565,0.048536472022533,0.048637311905622,0.000257876818068,0.049115423113108,-0.080912545323372,-0.042092483490705,-0.124620027840137,-0.025695415213704,0.066274218261242,-0.041142411530018) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.155824095010757,0.055867310613394,-0.031857263296843,0.141203090548515,0.048559572547674,-0.001376179396175,0.028936844319105,0.016207896173000,-0.073839068412781,0.049459792673588,-0.030053915455937,0.081988476216793,-0.016989395022392,-0.024642873555422,0.010352833196521,0.069145329296589) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.092017240822315,-0.085036218166351,-0.013346252962947,-0.023115132004023,0.080667160451412,0.024743048474193,0.029434526339173,-0.009730432182550,0.050286192446947,-0.097642615437508,0.013749016448855,-0.029427729547024,0.101384148001671,-0.123769849538803,-0.033746581524611,-0.009685589931905) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.051883887499571,0.074248112738132,-0.012950143776834,0.036968220025301,-0.033746447414160,0.031520441174507,0.042161360383034,0.030979648232460,0.109200321137905,-0.007102755829692,-0.089702367782593,-0.039483632892370,-0.029153073206544,-0.097042396664619,0.026911800727248,-0.045028410851955) * FEATURE2_texOff(vec2(0,1));
res += mat4(0.001758372061886,-0.017972482368350,-0.022405097261071,-0.170048147439957,0.069628849625587,-0.012541555799544,-0.024465970695019,0.054589312523603,-0.022386940196157,-0.113544374704361,-0.027729624882340,-0.128138482570648,0.042277578264475,0.111474387347698,-0.007681512739509,-0.139222666621208) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.083634719252586,-0.055751856416464,-0.027551367878914,0.049729794263840,0.046883881092072,0.009336033836007,0.012446492910385,0.034872964024544,-0.211761459708214,-0.135949611663818,-0.001033037086017,0.017768891528249,0.071075826883316,0.083592787384987,0.011141384020448,0.112209573388100) * FEATURE2_texOff(vec2(1,0));
res += mat4(0.058690164238214,0.058703191578388,0.064838618040085,0.061668507754803,-0.008721671998501,-0.043736044317484,-0.102936297655106,0.017197152599692,0.098389521241188,-0.006084403023124,0.092070959508419,0.035457454621792,0.105868697166443,0.105175189673901,-0.067419514060020,0.014322357252240) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.060207542032003,-0.001599367824383,0.007561216130853,0.095873907208443,0.185099735856056,-0.031682267785072,-0.052159648388624,-0.035422973334789,0.051403865218163,-0.059108410030603,0.025294503197074,-0.063404448330402,0.065805546939373,-0.030837420374155,0.000138255476486,-0.008811351843178) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.022668803110719,0.018823489546776,-0.035283699631691,0.032302055507898,0.166429385542870,0.016998937353492,-0.015779210254550,0.078444205224514,-0.045016296207905,-0.040625929832458,0.008441869169474,0.070399418473244,-0.121732354164124,0.061884496361017,0.058124642819166,0.099464863538742) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.039309523999691,-0.034415964037180,-0.127264067530632,-0.048417545855045,0.235332056879997,-0.006492387969047,0.021462069824338,-0.024225514382124,0.093422509729862,0.069369643926620,0.010462597012520,0.005813993513584,0.093577153980732,0.041983660310507,-0.116288185119629,0.006133303977549) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.095215424895287,0.047194235026836,0.027779312804341,-0.002525050193071,0.246367305517197,-0.010899923741817,0.006081719417125,0.007256280165166,-0.058034230023623,0.055120289325714,0.034713424742222,-0.019151296466589,-0.027066117152572,0.014557613991201,0.044960755854845,0.002774363383651) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.029037337750196,0.030670525506139,-0.025138786062598,0.041069097816944,0.317408829927444,0.063298374414444,0.002096868352965,0.020853687077761,-0.175446406006813,0.024517744779587,-0.033740337938070,-0.041739139705896,-0.338758945465088,0.150167733430862,-0.055236462503672,0.032118715345860) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.003703254042193,-0.060739263892174,-0.167751133441925,0.129553884267807,0.272939503192902,0.097040168941021,0.031880427151918,0.025400197133422,-0.130780264735222,0.056887473911047,-0.001372165861540,0.039349336177111,-0.014775088056922,0.059087980538607,-0.018017603084445,0.091707557439804) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.022020583972335,0.109826989471912,0.013558409176767,-0.007276018615812,0.127349570393562,0.135590672492981,0.060843292623758,0.050652783364058,0.083761528134346,0.154156953096390,-0.006696291733533,0.114603810012341,-0.003697317326441,0.026227906346321,0.009943909943104,0.138016507029533) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.053956441581249,0.052798669785261,0.090902119874954,-0.002826278563589,0.262623429298401,0.267309963703156,-0.003318745642900,-0.022352404892445,-0.018994636833668,0.069874078035355,-0.055053427815437,0.057184297591448,-0.020975956693292,0.071688018739223,-0.150498583912849,-0.081384226679802) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.043066009879112,-0.035603579133749,0.070923022925854,-0.180113241076469,0.244831874966621,0.262611478567123,-0.031305812299252,0.057980708777905,0.022577898576856,0.045784089714289,0.058812484145164,-0.052568677812815,0.053630743175745,-0.048166889697313,0.203267186880112,0.018899919465184) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.072870008647442,-0.009465691633523,0.015435390174389,-0.050012763589621,-0.028083605691791,0.084880702197552,0.042484320700169,0.237843587994576,0.190941497683525,-0.094187833368778,-0.052054394036531,-0.222038879990578,-0.005089244805276,0.037892427295446,0.007200115360320,-0.064916297793388) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.023955650627613,0.015269752591848,0.041461918503046,0.090782545506954,0.073151528835297,-0.122547872364521,-0.194394156336784,-0.087767943739891,-0.195293039083481,0.142903089523315,0.146568775177002,0.056190509349108,0.019578274339437,0.036789130419493,0.032915931195021,-0.043212462216616) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.085667170584202,0.127388700842857,-0.106662042438984,0.011562507599592,0.051517184823751,-0.030578283593059,0.057884689420462,-0.071755565702915,-0.013013270683587,-0.016414664685726,-0.094713188707829,0.057593841105700,-0.044372353702784,0.053895100951195,0.046732351183891,-0.031800962984562) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.036044050008059,0.038008678704500,0.033044017851353,-0.081586107611656,-0.165455326437950,0.153026789426804,0.049329057335854,0.193118408322334,0.034680549055338,-0.041781738400459,0.102143727242947,0.109567552804947,0.008203850127757,0.046997990459204,-0.006980784703046,0.115579731762409) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.323352843523026,0.181735008955002,0.043889202177525,0.010495773516595,0.173704922199249,-0.105977915227413,-0.139062255620956,0.060855165123940,-0.389552295207977,0.224739074707031,-0.168433934450150,-0.148254379630089,0.006151022389531,-0.006563017144799,0.025848463177681,0.022259086370468) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.081305183470249,0.086816824972630,-0.065032452344894,0.078330777585506,0.031606595963240,0.077521055936813,0.045448053628206,0.038159787654877,-0.151351794600487,0.010729358531535,0.037377789616585,0.061139196157455,-0.148910552263260,0.025572914630175,0.023522943258286,-0.093905061483383) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.016470568254590,0.035038143396378,-0.031764592975378,0.049786001443863,-0.173792526125908,-0.011070069856942,-0.021540014073253,-0.064943619072437,-0.061792451888323,0.061188153922558,0.029569983482361,0.319042444229126,0.104902818799019,0.110633499920368,-0.031474612653255,-0.015243200585246) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.226620495319366,-0.017129207029939,-0.112106435000896,-0.068474635481834,0.136008739471436,-0.043829873204231,0.219051465392113,0.121246322989464,0.157345443964005,0.255742162466049,-0.324100255966187,0.020255982875824,-0.031925901770592,0.093897566199303,-0.086382023990154,0.160049110651016) * FEATURE4_texOff(vec2(1,0));
res += mat4(-0.014972171746194,-0.049662396311760,0.154854193329811,-0.022885940968990,0.053655229508877,0.069800533354282,-0.049618341028690,0.042521838098764,0.105628482997417,-0.076992109417915,0.304464936256409,-0.157483607530594,0.077572159469128,0.041121363639832,-0.012573460116982,0.031867917627096) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.044436238706112,-0.086819775402546,-0.039149962365627,0.014483989216387,-0.012785380706191,0.009099728427827,-0.019172281026840,-0.083276301622391,0.011940740048885,-0.021737033501267,-0.027026336640120,0.007362490519881,0.067769385874271,-0.064256779849529,0.065111756324768,0.010136691853404) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.152842864394188,0.034870881587267,0.005753953009844,-0.008240103721619,-0.019525397568941,-0.024344835430384,0.083435185253620,0.070923514664173,-0.029933005571365,0.045564450323582,-0.013195915147662,0.050404511392117,-0.296758115291595,0.156082898378372,-0.120091229677200,-0.075459815561771) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.106219120323658,-0.094263374805450,0.034359138458967,0.106916449964046,0.038645278662443,0.008906006813049,-0.079478502273560,-0.018586039543152,-0.052295237779617,-0.141214594244957,0.097468808293343,0.013602134771645,-0.090364709496498,-0.077502317726612,0.100227057933807,-0.025376278907061) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.161703497171402,0.056672468781471,-0.000132393179229,0.049861725419760,0.084244675934315,0.023733304813504,-0.023192822933197,-0.110289916396141,0.051427330821753,-0.061236146837473,0.004661415237933,0.124253869056702,-0.192520260810852,0.021495738998055,0.079842284321785,0.282886356115341) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.070511497557163,-0.024611216038465,-0.123746931552887,0.050409503281116,-0.135725498199463,0.064354658126831,0.023409320041537,0.028288854286075,0.344536781311035,-0.130322262644768,0.018812272697687,-0.082551091909409,0.334794819355011,-0.248952478170395,-0.201003849506378,-0.143053367733955) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.115502335131168,-0.030097741633654,0.144888505339622,-0.012253698892891,0.060829438269138,0.054672755300999,0.011801986955106,-0.016870325431228,-0.097348809242249,-0.077782042324543,-0.010661079548299,0.031610816717148,0.033156756311655,-0.035040348768234,0.131507426500320,-0.164734601974487) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.018021266907454,0.082510896027088,0.002024667803198,0.102029412984848,-0.026162145659328,0.017901789397001,-0.046377215534449,0.122430846095085,0.017643876373768,0.015036046504974,0.057619079947472,-0.072907797992229,-0.026534423232079,-0.033899340778589,0.015279361978173,-0.169449150562286) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.200265735387802,0.143346056342125,-0.106815695762634,-0.130121588706970,0.006477531045675,0.046071875840425,-0.059247300028801,-0.086650088429451,-0.045256182551384,-0.050868596881628,0.069687508046627,0.150404006242752,0.045902110636234,0.020477941259742,-0.028687685728073,0.068307973444462) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.027868773788214,-0.012981648556888,0.050607837736607,0.004139202646911,0.025629919022322,-0.037500027567148,0.119815096259117,-0.003930454142392,-0.098808057606220,-0.080075725913048,-0.108507737517357,-0.026889545843005,0.030891718342900,-0.057881962507963,0.135350167751312,-0.038377813994884) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.047554064542055,-0.041027016937733,0.022505138069391,0.099360153079033,0.037477687001228,0.026824550703168,-0.040390811860561,0.071384541690350,-0.033168233931065,0.022576771676540,-0.075562871992588,-0.087642371654510,0.072519540786743,-0.060186650604010,0.064557060599327,0.068174079060555) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.121130533516407,-0.090975239872932,0.043338354676962,0.103659912943840,0.036208454519510,-0.033077206462622,0.046806901693344,0.023454898968339,-0.069930858910084,0.022864852100611,0.184002965688705,0.002889093244448,0.109886772930622,-0.038229919970036,-0.049270994961262,0.039936412125826) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.039213210344315,0.041502270847559,-0.025653842836618,-0.101481877267361,0.003914128523320,0.015656119212508,0.003129315096885,-0.126984760165215,-0.057255972176790,0.047060918062925,-0.086387999355793,0.019917773082852,-0.006548409350216,-0.019157884642482,-0.063359089195728,0.079740725457668) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.018257847055793,0.007106363773346,0.100341439247131,-0.082700863480568,0.005899339448661,-0.000305811787257,-0.008872020989656,0.029352752491832,0.114043079316616,-0.013448972254992,-0.058568418025970,-0.140660911798477,-0.054704833775759,0.094600856304169,0.043531578034163,-0.134434759616852) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.036090109497309,0.056210674345493,0.059265129268169,0.084373079240322,-0.062993861734867,0.027173789218068,0.057333540171385,0.083635069429874,-0.400172859430313,0.214794695377350,0.077062189579010,0.041298251599073,-0.095220386981964,0.127065241336823,0.028804756700993,0.066041804850101) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.046748928725719,0.124956361949444,-0.058024730533361,0.019799116998911,0.038509353995323,0.004251438658684,-0.034021593630314,0.045722767710686,-0.007695320993662,-0.014960948377848,-0.041020467877388,0.026316450908780,-0.078488171100616,0.100770741701126,-0.021328290924430,0.065565012395382) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.028214154765010,-0.016024019569159,-0.033964440226555,-0.112461231648922,-0.053235080093145,-0.051328904926777,0.011566607281566,-0.062351536005735,0.082492753863335,0.034270431846380,0.021523563191295,0.175365105271339,-0.025524439290166,0.036485202610493,-0.024048633873463,-0.054825607687235) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.122628502547741,-0.089306965470314,0.003028701525182,-0.008478567935526,-0.069743603467941,-0.080679029226303,0.020554257556796,0.053030449897051,0.027555203065276,0.108758106827736,-0.175812244415283,-0.059067256748676,-0.103622764348984,-0.060259848833084,-0.013339354656637,-0.147730842232704) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.015659658238292,-0.028522720560431,-0.095458395779133,0.075425885617733,0.032652553170919,-0.025099018588662,-0.022762926295400,0.144796252250671,0.129872202873230,0.050241220742464,0.091954700648785,0.006339841056615,-0.115443088114262,-0.039252422749996,-0.010926777496934,0.018517810851336) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.001731625176035,-0.009551612660289,-0.177962362766266,-0.148113071918488) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_4x_Photo] mapping 1_3

vec4 hook()
{
vec4 res = vec4(-0.121640920639038,-0.066911272704601,-0.131058111786842,0.074046261608601);
res += mat4(0.035293024033308,0.002513308310881,-0.076337166130543,-0.098552495241165,-0.059045854955912,0.019629256799817,-0.089199140667915,-0.031513746827841,-0.113352380692959,0.004764514043927,0.142828613519669,0.107286624610424,-0.009263290092349,0.006713247857988,-0.067529611289501,0.114613398909569) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.031270910054445,0.008953243494034,0.014439968392253,-0.017293090000749,-0.027207581326365,-0.012276439927518,0.020452491939068,0.065848603844643,-0.066419139504433,0.050205528736115,-0.019945256412029,0.166142255067825,-0.085383832454681,0.030489537864923,0.021270150318742,0.030193394050002) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.118811443448067,0.027922663837671,-0.000062770966906,0.042467981576920,-0.131241098046303,-0.000397433614125,0.011366003192961,-0.004090492147952,-0.034481830894947,0.003093433799222,-0.039545509964228,0.017852092161775,-0.075438745319843,-0.005231653805822,0.057784959673882,0.046834684908390) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.009813548997045,0.004748178645968,-0.027495862916112,0.026470845565200,0.007034068461508,0.022656030952930,-0.013005367480218,-0.184574633836746,-0.040954828262329,-0.030988289043307,-0.060863949358463,-0.061476882547140,0.025710426270962,-0.039390273392200,0.025933999568224,0.048122301697731) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.018703904002905,0.006132970098406,-0.058788239955902,-0.171413242816925,-0.117574535310268,0.009255648590624,-0.087947614490986,-0.165888845920563,-0.157315939664841,0.064686655998230,-0.179381817579269,-0.357408583164215,0.023518124595284,-0.003579648444429,0.059516981244087,0.013236668892205) * FEATURE1_texOff(vec2(0,0));
res += mat4(-0.054411843419075,0.031213223934174,-0.095162384212017,0.024101538583636,-0.078104078769684,0.002235090127215,0.008683688938618,0.082698710262775,-0.095420703291893,-0.019793296232820,0.073249690234661,0.167896747589111,-0.097326360642910,0.010892374441028,0.020008010789752,-0.097481004893780) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.027971126139164,0.005105888471007,-0.126808077096939,-0.049685616046190,0.167840987443924,-0.007362366188318,-0.179840773344040,0.064398698508739,-0.000065306354372,-0.028683057054877,-0.175434172153473,-0.000482534116600,0.079193711280823,-0.037668172270060,-0.018263760954142,-0.011692044325173) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.013089878484607,-0.006047205068171,-0.035924844443798,-0.011923893354833,0.164517313241959,-0.006820718757808,-0.044657755643129,0.111051708459854,0.111377604305744,0.025821367278695,0.123195357620716,0.037770211696625,0.021512392908335,-0.007423994131386,0.014322268776596,0.014858758077025) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.050806395709515,0.020475309342146,0.066148035228252,0.123693645000458,-0.018845057114959,-0.000211682301597,0.030914777889848,0.037141047418118,-0.179019227623940,0.014767945744097,0.100818000733852,-0.053840532898903,0.050838891416788,0.019538853317499,-0.066601417958736,-0.061451625078917) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.013757846318185,0.010186227969825,0.049378164112568,0.013629048131406,-0.016364397481084,-0.004102215636522,0.022247929126024,0.060878098011017,-0.006496812216938,0.031870957463980,0.063933931291103,0.020499613136053,0.017535964027047,-0.038592662662268,0.019790148362517,-0.040841300040483) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.032675113528967,-0.015495426021516,0.041191089898348,-0.101221613585949,-0.009311567991972,-0.007969249971211,0.002339689992368,0.085416667163372,-0.043149333447218,0.007611739914864,0.028629234060645,-0.155997857451439,0.071178063750267,-0.031176554039121,0.034381870180368,-0.019850527867675) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.102376639842987,0.012811645865440,0.039601691067219,0.091886095702648,0.064290642738342,-0.016038656234741,0.037839323282242,0.070154987275600,-0.151790544390678,0.032683167606592,-0.050717577338219,-0.010468449443579,0.014783727936447,-0.024042293429375,0.026051182299852,-0.025470580905676) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.046112887561321,0.022084325551987,-0.126042842864990,-0.049563109874725,0.054491709917784,-0.009652112610638,0.004951895214617,0.077340893447399,-0.072091281414032,0.018911195918918,0.022845074534416,0.027304481714964,-0.025076016783714,0.013297509402037,0.017010550945997,-0.078911051154137) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.033607419580221,-0.015051661990583,-0.006864439230412,0.131915226578712,-0.002185209421441,-0.017629284411669,0.074200369417667,0.098543062806129,-0.029364660382271,0.014578343369067,-0.034814719110727,0.161797299981117,-0.008971596136689,-0.017732823267579,0.040933903306723,0.109034240245819) * FEATURE2_texOff(vec2(0,0));
res += mat4(0.017895700410008,0.008037549443543,-0.030128560960293,0.058902326971292,-0.033352855592966,-0.006714448332787,0.002229239558801,0.015526089817286,-0.052941452711821,0.014012323692441,-0.030007909983397,0.016483519226313,0.092321641743183,-0.018200851976871,-0.020571308210492,-0.120538011193275) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.002956747310236,0.019902294501662,-0.127374127507210,-0.072689674794674,-0.002062292303890,0.004111022688448,-0.028635244816542,0.130275234580040,0.059066761285067,0.000549748190679,0.178271517157555,0.059120938181877,0.035852838307619,0.014726860448718,-0.029107715934515,0.021302768960595) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.030826011672616,-0.006465050857514,0.037599209696054,0.054909043014050,0.004345376975834,-0.010173566639423,0.060938347131014,0.109816908836365,-0.002839940367267,0.024655835703015,-0.074447199702263,-0.277637988328934,0.017100131139159,-0.020535884425044,-0.003287770552561,0.061033625155687) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.058627348393202,0.012990538962185,-0.063704565167427,0.011667996644974,0.056659869849682,-0.003016320290044,-0.038271643221378,-0.006030923221260,-0.090557917952538,0.009967036545277,-0.115352272987366,0.149583920836449,0.075786545872688,-0.040355309844017,0.072144113481045,0.089950427412987) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.147415086627007,0.020470658317208,0.033157937228680,-0.050880078226328,0.042673144489527,0.004476340021938,0.009655416011810,0.086610727012157,0.074838355183601,-0.013590160757303,0.011748641729355,-0.018860615789890,0.043008983135223,-0.015193590894341,0.053790606558323,0.079152159392834) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.119318440556526,-0.016906328499317,-0.018458206206560,-0.010631219483912,0.111129760742188,0.004204588476568,0.059149958193302,0.106543481349945,0.004825343843549,0.024410648271441,-0.030718242749572,-0.053482767194510,-0.040153961628675,0.021740945056081,-0.042509503662586,0.076874382793903) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.106369651854038,0.023889506235719,-0.065468482673168,-0.029345357790589,-0.016882508993149,0.005643886979669,-0.013973962515593,0.064727477729321,0.021436465904117,0.021931160241365,0.027676127851009,0.032401580363512,-0.050941683351994,0.015152623876929,0.004221228882670,0.115761622786522) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.060308817774057,0.024029785767198,0.011751323938370,0.010311197489500,0.012021671049297,0.007906608283520,0.032057050615549,0.128092631697655,0.024067860096693,-0.019766418263316,0.107252970337868,-0.087655112147331,-0.033552430570126,-0.031414017081261,0.103925600647926,-0.010390911251307) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.001824070466682,-0.006493841297925,0.069020256400108,-0.016571555286646,-0.035971950739622,0.008431455120444,0.009212306700647,0.116063214838505,-0.049749292433262,0.013556400313973,-0.040114887058735,-0.221119090914726,-0.053410179913044,0.026740001514554,-0.132711738348007,-0.481738775968552) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.035202827304602,0.019488725811243,-0.017425468191504,-0.015989527106285,0.027901409193873,0.008110843598843,0.008764727972448,0.226652547717094,-0.042628701776266,0.019775228574872,-0.037813320755959,-0.210043504834175,-0.122801333665848,0.008529348298907,-0.057222820818424,0.050410423427820) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.011696998961270,0.016280721873045,0.099957436323166,0.037317130714655,0.031087035313249,0.006433856673539,0.024361945688725,0.043211288750172,-0.008934510871768,-0.022272035479546,0.095151923596859,-0.008461655117571,0.030536202713847,-0.027326956391335,-0.057066064327955,0.016297413036227) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.068424820899963,-0.003572696354240,-0.019061099737883,0.030976176261902,0.104989506304264,0.009625243954360,0.003445321228355,-0.044102165848017,0.056231550872326,0.001727939466946,-0.051112685352564,-0.039809372276068,0.114902921020985,0.016051234677434,-0.106189005076885,-0.007328370120376) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.008264103904366,0.010417524725199,0.035564459860325,0.066821582615376,-0.048057489097118,0.008947047404945,-0.047938559204340,0.136910513043404,0.101144999265671,0.012410341762006,0.043312530964613,-0.103580452501774,0.044118981808424,0.003841017838567,0.020932111889124,-0.012862700037658) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.010831424035132,0.000376884912839,-0.001244930899702,0.062123008072376,-0.153936907649040,0.017937595024705,-0.131903216242790,-0.120546594262123,0.121119484305382,-0.056034095585346,0.248962089419365,0.123156987130642,0.003736026817933,-0.026140505447984,-0.066684886813164,0.068366684019566) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.080583214759827,0.014123030006886,0.039775997400284,0.113746069371700,0.090258121490479,-0.019086711108685,-0.078368619084358,0.049742314964533,-0.125810205936432,0.032421439886093,-0.045562904328108,-0.090998888015747,0.032525856047869,-0.004944121930748,-0.022673498839140,0.034275244921446) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.109341382980347,0.011587860994041,0.004233262501657,0.137378305196762,0.095561832189560,0.035244863480330,-0.011823804117739,-0.022232349961996,-0.086103022098541,-0.035376410931349,-0.017710419371724,0.105752423405647,0.017472395673394,-0.016022674739361,0.060310024768114,0.014565048739314) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.006894224788994,-0.022648232057691,0.139321446418762,0.039045196026564,-0.093464784324169,0.036852154880762,-0.262214213609695,-0.225700452923775,-0.038127582520247,-0.050423473119736,0.171505853533745,0.173195511102676,-0.035843931138515,-0.019537990912795,0.134677782654762,0.020509909838438) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.094905927777290,0.017428701743484,-0.057478696107864,-0.381457626819611,0.001589196734130,-0.032743763178587,-0.014421760104597,0.232909664511681,0.041617050766945,0.032714698463678,-0.130973175168037,-0.389032423496246,-0.023185433819890,-0.012014932930470,0.029341990128160,0.016958884894848) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.152365416288376,0.005703808274120,-0.076598823070526,-0.114640958607197,0.095034435391426,0.035643272101879,-0.055301778018475,-0.004478428978473,-0.228529438376427,-0.026140630245209,-0.025192651897669,-0.108248315751553,0.109715513885021,-0.016307646408677,0.019301254302263,-0.162903741002083) * FEATURE4_texOff(vec2(0,1));
res += mat4(0.008193208836019,-0.025209549814463,0.067683018743992,0.066641382873058,-0.025955926626921,0.042933020740747,-0.256489336490631,-0.166342020034790,-0.007318593561649,-0.025445079430938,-0.115117557346821,-0.035018585622311,0.060436997562647,-0.011836423538625,-0.030163384974003,0.051235601305962) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.048703193664551,0.016258435323834,-0.090196326375008,-0.226026609539986,-0.129603505134583,-0.033783040940762,-0.046651415526867,0.176805675029755,0.154488667845726,0.005611544474959,-0.041740693151951,0.148511126637459,0.027399009093642,-0.007645593490452,-0.064716346561909,0.004656015429646) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.031876884400845,-0.000961271754932,-0.001830515218899,0.040365818887949,0.042397689074278,0.038662455976009,-0.046690396964550,0.073581650853157,0.228986114263535,-0.046999245882034,0.062483996152878,0.067043922841549,0.164244398474693,-0.019860500469804,-0.050433009862900,-0.031659472733736) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.085276126861572,-0.061031024903059,0.152925640344620,0.009281542152166,0.003044149372727,0.026981372386217,-0.027361195534468,0.021905789151788,0.020347569137812,-0.013254171237350,-0.023230798542500,-0.075193785130978,0.071195714175701,-0.056951399892569,0.030585892498493,-0.006660274695605) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.096918284893036,0.013243827037513,-0.146548464894295,-0.093881838023663,-0.052459470927715,0.017022518441081,-0.050215180963278,-0.015777340158820,0.042735442519188,-0.012532101944089,-0.016299711540341,-0.049951877444983,0.067197762429714,0.001443630550057,-0.149973273277283,-0.335605084896088) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.100229479372501,-0.034330118447542,-0.053322099149227,-0.004173644818366,0.055195227265358,-0.000337003933964,0.088311843574047,-0.025871099904180,0.063914835453033,-0.018343996256590,0.014534479007125,0.017743367701769,-0.064944230020046,-0.001461910200305,0.003811329370365,0.012313647195697) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.053710725158453,-0.017812447622418,-0.101072072982788,-0.132490053772926,-0.027815015986562,0.004979630932212,-0.008235712535679,-0.002020838670433,0.020183561369777,0.002707522129640,-0.042761486023664,-0.009156177751720,-0.164279177784920,0.018963795155287,-0.191537946462631,-0.201621711254120) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.005727400071919,0.016851358115673,-0.106842502951622,-0.171465441584587,-0.039292234927416,0.038485944271088,-0.042986895889044,-0.194207847118378,0.113579854369164,-0.025412434712052,0.123288869857788,0.439785659313202,0.144328594207764,-0.037775456905365,0.125748157501221,0.224876150488853) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.128629356622696,-0.030385673046112,0.071711808443069,0.099155448377132,-0.113857455551624,0.008027044124901,0.145857796072960,0.121634684503078,0.097316682338715,-0.004370451904833,-0.003361123614013,-0.106765858829021,0.169526174664497,-0.009599751792848,0.129596635699272,0.020769134163857) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.146120116114616,-0.031343057751656,-0.134905710816383,0.013529357500374,0.021737352013588,0.000019182198230,0.040259484201670,-0.046766575425863,-0.057209949940443,0.010137758217752,0.115488126873970,0.003133109770715,0.060188122093678,0.011212430894375,-0.065452232956886,0.050595622509718) * FEATURE5_texOff(vec2(1,-1));
res += mat4(0.150471717119217,-0.035506553947926,0.146610498428345,0.196733161807060,0.102390088140965,0.014591014944017,0.125915929675102,0.035252001136541,-0.156479194760323,-0.006797002628446,0.009636922739446,-0.004434546455741,-0.172883346676826,-0.026803227141500,0.059000235050917,-0.039404012262821) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.021112056449056,-0.020392507314682,0.133525520563126,0.018233040347695,-0.067350715398788,0.022692302241921,-0.064953014254570,-0.121686995029449,-0.025296393781900,0.000561547290999,-0.085006400942802,-0.056193869560957,-0.032502371817827,-0.004160136915743,0.112405985593796,-0.067806392908096) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.008501255884767,0.059124544262886,0.002705735387281,0.084498398005962,0.062604986131191,0.046676967293024,0.091486573219299,0.080673955380917,0.092448152601719,-0.016289399936795,0.099681355059147,0.029895052313805,-0.115407809615135,0.016324048861861,-0.004156070295721,0.011767013929784) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.001185572822578,-0.005496764089912,0.033024709671736,0.072263360023499,-0.007098205387592,-0.003185652429238,0.066029749810696,0.050623346120119,-0.025369197130203,0.003098627552390,-0.005433228798211,0.051715772598982,0.057878863066435,0.017768569290638,0.101639173924923,0.177668496966362) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.142865359783173,0.045969165861607,0.051749341189861,0.038076061755419,-0.017601445317268,0.009318169206381,0.031989324837923,-0.009158856235445,-0.025448109954596,-0.032083831727505,-0.052683975547552,-0.027268800884485,-0.055805519223213,0.005351117812097,0.023261545225978,0.084656767547131) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.045259226113558,0.031444437801838,-0.004856841173023,-0.103932946920395,0.051298972219229,0.031555712223053,0.017045952379704,-0.038638308644295,0.084646433591843,-0.033327102661133,0.259494453668594,0.171855852007866,0.000764960248489,-0.007184433750808,0.048583533614874,-0.071734376251698) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.070511229336262,0.003622621996328,0.002310808282346,-0.063419334590435,0.000986827188171,0.012697552330792,-0.056108649820089,-0.109975047409534,-0.011104025878012,0.025677463039756,-0.109279714524746,-0.460977941751480,-0.153908893465996,0.022700849920511,-0.045221142470837,-0.116143047809601) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.042514875531197,0.026681061834097,0.000928749155719,0.061139598488808,-0.075070329010487,-0.002521500457078,-0.095632374286652,-0.014848534949124,-0.088636890053749,-0.036253087222576,-0.085197478532791,-0.065169088542461,-0.008364607580006,0.001052953884937,0.026104273274541,-0.007965679280460) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.103048324584961,0.025232177227736,0.061832863837481,-0.016625948250294,-0.037619702517986,0.022981632500887,-0.011242886073887,-0.053525321185589,0.041032344102859,-0.035929385572672,0.001607779180631,0.055589038878679,0.037360295653343,-0.000409686821513,0.021206626668572,0.034857746213675) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.067229494452477,0.022984279319644,0.086994603276253,-0.004292713478208,0.045833479613066,0.017647856846452,0.022869113832712,0.071209251880646,0.187608972191811,0.017009016126394,-0.087925091385841,0.152223914861679,0.032668594270945,0.024470230564475,-0.072457909584045,-0.127336502075195) * FEATURE6_texOff(vec2(1,0));
res += mat4(-0.104828990995884,0.041305527091026,0.035532899200916,-0.103257000446320,-0.033784504979849,-0.006377044599503,-0.067523308098316,0.014086727052927,0.060751706361771,-0.048217311501503,0.031409543007612,0.120722591876984,-0.023301344364882,0.013434906490147,0.020181540399790,0.007913651876152) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.111602187156677,-0.014040580950677,-0.257579803466797,0.691816151142120) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_4x_Photo] mapping 1_4

vec4 hook()
{
vec4 res = vec4(-0.122839197516441,-0.147600933909416,-0.019403764978051,-0.175945714116096);
res += mat4(-0.021944949403405,0.010733604431152,-0.054531753063202,0.018991831690073,-0.052006788551807,0.010389782488346,-0.075999900698662,0.020985558629036,-0.052988208830357,0.032118197530508,-0.037444978952408,-0.003662397619337,-0.074276581406593,0.008925572037697,0.009297147393227,-0.017002480104566) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(0.002675648778677,-0.068916432559490,-0.067180342972279,-0.048308718949556,0.130067810416222,0.003167856950313,-0.029545228928328,0.057639990001917,0.256088703870773,0.042472157627344,-0.009983838535845,0.070227093994617,0.047899167984724,-0.024614753201604,-0.062314733862877,0.070034340023994) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.027879439294338,-0.013529786840081,-0.018977731466293,0.076680727303028,0.139721140265465,-0.013762502931058,-0.006114686839283,-0.033592674881220,-0.025546586140990,0.042860589921474,-0.009658310562372,-0.031851496547461,0.014734114520252,0.054094746708870,-0.005833397153765,0.096326448023319) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.054234001785517,0.005174583755434,-0.050521455705166,0.071586251258850,-0.036490518599749,-0.027503119781613,0.043028995394707,-0.107192888855934,-0.077562481164932,0.118829600512981,0.168738082051277,-0.046871412545443,-0.017141185700893,-0.079297706484795,0.103402152657509,-0.039245694875717) * FEATURE1_texOff(vec2(0,-1));
res += mat4(0.034516651183367,-0.039660159498453,-0.087445989251137,-0.014853270724416,0.062770612537861,-0.031024523079395,-0.004950098227710,-0.003450270742178,0.005265255458653,0.039712853729725,-0.026321100071073,-0.035771884024143,-0.040111552923918,-0.015292602591217,0.063842430710793,-0.037781503051519) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.028972048312426,-0.036285843700171,-0.063193053007126,0.038949605077505,0.020930141210556,-0.001776753342710,-0.023700391873717,0.196133121848106,-0.042222552001476,-0.044450890272856,0.179490134119987,0.175461426377296,0.009703487157822,0.079728230834007,-0.017311068251729,0.010634020902216) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.009020023047924,-0.014252545312047,0.105157829821110,-0.000676195719279,-0.057193655520678,-0.180898278951645,0.017136208713055,-0.074978597462177,0.017732193693519,-0.132747963070869,0.069911301136017,-0.027625171467662,-0.010842506773770,-0.019122146070004,-0.029198914766312,0.010498137213290) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.012891310267150,-0.101387515664101,0.066634401679039,-0.011524753645062,0.029538046568632,-0.183803260326385,-0.056063171476126,-0.279933840036392,-0.008985756896436,-0.187487974762917,0.012826816178858,-0.093385770916939,0.001725160051137,0.011005328968167,0.017283830791712,-0.072316803038120) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.023328712210059,-0.059776250272989,0.040720012038946,-0.006451714783907,0.088821209967136,-0.093118503689766,-0.120847292244434,-0.047648798674345,0.108513459563255,0.209096103906631,-0.001873197266832,0.000373728020350,0.011320720426738,-0.043383780866861,-0.003884482197464,-0.086633689701557) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.008150491863489,0.010423753410578,0.037663754075766,-0.010647203773260,-0.032555244863033,-0.046605885028839,0.034066803753376,-0.023099487647414,0.165702730417252,-0.013346930034459,0.069006577134132,0.025940014049411,-0.004293386358768,0.009103565476835,-0.005168368574232,0.001306048827246) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.015283696353436,0.019879620522261,-0.037881605327129,-0.077003642916679,-0.003542168531567,0.006654761731625,-0.004199090879411,0.040763467550278,-0.134730830788612,0.044865313917398,0.071269258856773,-0.041645906865597,-0.033041086047888,-0.021874999627471,-0.024822577834129,-0.046461172401905) * FEATURE2_texOff(vec2(-1,0));
res += mat4(-0.043097145855427,-0.012384878471494,0.063896954059601,-0.014381100423634,0.023440860211849,0.059231083840132,-0.026031618937850,-0.009714455343783,-0.098594143986702,-0.032959815114737,0.066965132951736,-0.046590123325586,0.053352527320385,-0.029940284788609,0.011774164624512,-0.078776106238365) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.030888358131051,0.045481201261282,-0.077359080314636,-0.053146008402109,0.028502192348242,-0.034037586301565,0.027832761406898,-0.005633917637169,0.020252458751202,-0.006100166589022,-0.070472501218319,-0.004460554569960,0.052165988832712,0.036415848881006,-0.133228033781052,0.016860015690327) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.009953945875168,-0.097561068832874,0.019957548007369,0.022333897650242,-0.067893236875534,0.037273701280355,0.033491343259811,-0.034984629601240,0.041818447411060,-0.079945638775826,0.021804004907608,0.025173563510180,0.047705180943012,-0.019045166671276,-0.042620740830898,0.033482115715742) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.000870586431120,0.067585848271847,-0.036045797169209,-0.051805824041367,-0.013723445124924,0.048424255102873,-0.005874850787222,-0.055270746350288,0.023286649957299,-0.043794952332973,-0.028525805100799,0.046172332018614,0.028175903484225,-0.037438955157995,-0.090278133749962,-0.082840837538242) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.031745553016663,-0.119629912078381,0.046753115952015,-0.067300207912922,0.036217454820871,0.011483944952488,-0.079800941050053,-0.048905029892921,-0.136702612042427,0.027365867048502,-0.024572193622589,0.028946554288268,0.001956144813448,-0.043555621057749,-0.033037938177586,-0.024403879418969) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.058099739253521,0.070731200277805,-0.031850695610046,-0.032057471573353,-0.009387535043061,0.065571382641792,-0.027143184095621,-0.012530243024230,-0.014732864685357,0.046943277120590,0.000331042130711,-0.002144743688405,0.029478840529919,-0.019746607169509,-0.043876137584448,-0.013997346162796) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.019900601357222,-0.021013759076595,-0.017792394384742,0.136861205101013,-0.031725209206343,0.043670170009136,-0.015804361552000,-0.032775226980448,-0.061866562813520,-0.106965221464634,-0.058888487517834,0.202981889247894,-0.017829069867730,-0.097861953079700,-0.003713766345754,0.003491926239803) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.045535307377577,-0.005711991805583,-0.027356540784240,0.017613094300032,-0.037586644291878,0.045822665095329,0.090915709733963,-0.001816892996430,-0.014052961952984,0.027581168338656,-0.059023853391409,-0.003344941651449,-0.012041662819684,0.038317874073982,-0.009972193278372,-0.003827431472018) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(-0.023856664076447,0.021580409258604,0.065033763647079,-0.005958896595985,0.006200402043760,0.092452764511108,0.053066167980433,0.017913347110152,0.041763432323933,-0.006072648800910,-0.154372289776802,-0.001261489349417,0.073507234454155,0.041563786566257,-0.120515964925289,-0.032768350094557) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.050200965255499,-0.015733521431684,0.034229457378387,-0.123975262045860,0.065212093293667,0.075166404247284,0.034776099026203,-0.003710585180670,0.045086923986673,0.030799902975559,-0.036995414644480,-0.015403903089464,0.012454982846975,-0.002679465105757,0.004395747557282,0.004270078148693) * FEATURE3_texOff(vec2(-1,1));
res += mat4(0.084995806217194,-0.014315504580736,-0.032087784260511,0.062636807560921,0.013315024785697,0.100922212004662,0.100307740271091,0.037427075207233,-0.047250989824533,0.043962702155113,-0.042373642325401,0.012512988410890,-0.046577662229538,0.061870638281107,0.060056507587433,0.034468930214643) * FEATURE3_texOff(vec2(0,-1));
res += mat4(-0.052991826087236,0.039959501475096,-0.021565206348896,0.029990324750543,0.051296643912792,0.049413338303566,0.137206509709358,0.081068925559521,-0.085797756910324,-0.022201135754585,-0.098214261233807,-0.008640508167446,0.004572913050652,-0.040844667702913,-0.084376454353333,-0.074707463383675) * FEATURE3_texOff(vec2(0,0));
res += mat4(-0.003308811923489,-0.082839541137218,0.064824365079403,0.090257361531258,0.048000372946262,0.083172515034676,0.086356237530708,-0.009451496414840,-0.003192519769073,0.027553724125028,-0.059824749827385,0.032895255833864,0.022146556526423,-0.029915740713477,0.034356612712145,0.088049739599228) * FEATURE3_texOff(vec2(0,1));
res += mat4(0.011758074164391,-0.014788075350225,-0.078124694526196,-0.018045259639621,0.006255466956645,0.055400896817446,0.041557051241398,-0.063529871404171,-0.013596828095615,-0.012033543549478,0.141135349869728,-0.029841616749763,-0.029758458957076,-0.025809401646256,0.046825155615807,0.030461646616459) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.017638001590967,-0.056209906935692,-0.022641388699412,0.075803846120834,0.015706351026893,0.098007053136826,0.057393994182348,-0.030419079586864,-0.040794078260660,-0.085216931998730,0.113255515694618,-0.093264915049076,-0.009249426424503,-0.184907093644142,0.041016966104507,-0.051584552973509) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.045735307037830,-0.134577065706253,-0.031618028879166,-0.078377269208431,-0.023758076131344,0.068116851150990,0.027925977483392,-0.032498151063919,0.001473959768191,-0.079913161695004,0.145357817411423,-0.091906532645226,0.029397407546639,-0.109540313482285,0.032907631248236,-0.052054580301046) * FEATURE3_texOff(vec2(1,1));
res += mat4(0.047215186059475,0.035547725856304,-0.017448127269745,0.003798440098763,0.008975266478956,0.036829140037298,-0.155352160334587,0.021480759605765,-0.178466439247131,-0.005151377990842,0.089411973953247,-0.005484856199473,-0.033079430460930,0.028819028288126,0.004510368220508,-0.018860111013055) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(0.007426453288645,0.018578739836812,-0.117774404585361,-0.031417895108461,-0.082997269928455,-0.078834250569344,0.015047571621835,-0.046912632882595,0.098631821572781,0.036188445985317,-0.150182798504829,-0.128831252455711,-0.018869934603572,-0.008942146785557,-0.045972857624292,-0.030767759308219) * FEATURE4_texOff(vec2(-1,0));
res += mat4(-0.036806285381317,0.044152133166790,-0.072484605014324,-0.002086997497827,0.004667839501053,0.066745355725288,-0.026526352390647,-0.080930672585964,0.145411223173141,-0.012683002278209,0.033248960971832,0.182849243283272,0.023129830136895,0.036654159426689,-0.059179112315178,-0.060199595987797) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.079312108457088,0.005565724335611,0.065699040889740,-0.004438404459506,0.057227153331041,-0.035115573555231,-0.140506386756897,0.063580766320229,0.007972594350576,0.156258985400200,0.081469148397446,0.036797244101763,0.029456408694386,0.011558129452169,-0.008158249780536,-0.052506860345602) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.022697182372212,-0.007726255338639,-0.085060805082321,-0.025596180930734,-0.033548254519701,0.004820179194212,0.046745307743549,0.111200802028179,-0.064024485647678,-0.043635979294777,0.001365031814203,-0.132621929049492,-0.038742139935493,-0.016651913523674,-0.002277109073475,0.019565138965845) * FEATURE4_texOff(vec2(0,0));
res += mat4(-0.014422520063818,-0.006601729895920,0.028091732412577,0.102942734956741,-0.038254320621490,0.052065800875425,0.032656852155924,-0.085408590734005,-0.003161916276440,-0.030017940327525,0.001230605063029,-0.013955611735582,-0.044435527175665,0.050206791609526,-0.032736692577600,-0.073674023151398) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.049996722489595,0.027457177639008,0.090270631015301,-0.086247660219669,0.031359005719423,-0.105632774531841,0.029652189463377,-0.023714525625110,0.028357328847051,0.010586180724204,-0.100290514528751,-0.034963391721249,0.000778046669438,0.001306103891693,-0.030456030741334,-0.029911991208792) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.021958427503705,-0.135093256831169,0.096200913190842,-0.129644781351089,0.030853793025017,0.041597377508879,-0.025775251910090,0.165289029479027,0.010554682463408,-0.308571875095367,-0.038782950490713,0.068868778645992,-0.048484962433577,0.031233947724104,-0.065085500478745,-0.041872717440128) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.015232757665217,-0.094271421432495,0.070747435092926,0.108301810920238,0.042256366461515,0.118030324578285,0.026163004338741,-0.010036103427410,-0.053183149546385,-0.183430552482605,-0.039620961993933,-0.224441751837730,-0.066265136003494,-0.064569830894470,0.049826700240374,-0.055159538984299) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.173302412033081,-0.036650940775871,0.041519347578287,0.056600682437420,-0.053846240043640,-0.010572812519968,-0.023844692856073,-0.002736655995250,-0.009162192232907,-0.019818926230073,0.053368378430605,-0.008616937324405,-0.029869399964809,0.043539412319660,0.133215412497520,0.056569445878267) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.197646945714951,0.017264181748033,-0.022099997848272,-0.072779655456543,0.061228968203068,0.076990269124508,-0.065458290278912,-0.042125470936298,-0.084349445998669,0.043679088354111,0.018025849014521,-0.019374703988433,-0.038301683962345,0.008894855156541,-0.062125727534294,-0.135278284549713) * FEATURE5_texOff(vec2(-1,0));
res += mat4(0.100460387766361,-0.053133729845285,0.043541792780161,-0.076296709477901,0.007031012792140,-0.045725170522928,-0.020979855209589,0.070519939064980,-0.056166779249907,-0.023444293066859,0.037258561700583,-0.045602988451719,-0.011017763987184,-0.135942071676254,0.095257863402367,-0.076240569353104) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.043254721909761,0.135070651769638,-0.052636623382568,-0.031198715791106,-0.057825140655041,0.016237618401647,0.058224849402905,-0.045753605663776,0.035960491746664,-0.053179096430540,-0.103644005954266,0.020438022911549,0.081136271357536,0.066404864192009,-0.186112940311432,-0.021182589232922) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.015795353800058,-0.141093596816063,-0.054941277951002,0.054974000900984,-0.021676164120436,-0.043199863284826,-0.064411818981171,-0.078026324510574,-0.030736425891519,0.000276779028354,0.078597098588943,0.037021595984697,-0.015252790413797,-0.228452473878860,0.030880117788911,0.196853563189507) * FEATURE5_texOff(vec2(0,0));
res += mat4(0.026615981012583,-0.037896785885096,-0.016945490613580,0.041488330811262,-0.003321946598589,0.066185452044010,0.020696746185422,0.122107617557049,0.041873276233673,0.047936931252480,-0.050613190978765,-0.176560416817665,0.029080232605338,0.028307205066085,-0.103599742054939,-0.141213253140450) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.023603808134794,-0.225704222917557,-0.019345508888364,-0.050705779343843,0.026240689679980,0.008346310816705,0.008836663328111,0.049679525196552,0.039806067943573,0.086927652359009,-0.069629043340683,0.013534560799599,-0.059251975268126,-0.108530290424824,0.012639610096812,0.013261022046208) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.005003314930946,-0.106629475951195,-0.067311681807041,-0.105947718024254,-0.025734685361385,-0.043877802789211,0.047804072499275,0.091473914682865,0.030880853533745,0.233447089791298,-0.013320711441338,0.083958342671394,0.050147093832493,0.141496658325195,-0.047406394034624,0.055793922394514) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.007951055653393,0.075067706406116,-0.052987612783909,-0.049484111368656,0.015663886442780,-0.002623765962198,-0.019965136423707,-0.029783444479108,-0.035033494234085,-0.013303283601999,0.027936710044742,-0.018099911510944,-0.089916758239269,-0.002262959722430,0.034677281975746,0.099548727273941) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.136176750063896,-0.017369197681546,-0.002808434888721,-0.066895909607410,0.118214040994644,0.004629869479686,-0.012309577316046,-0.079996839165688,-0.065742202103138,-0.052668493241072,0.005668981000781,-0.026848856359720,0.022612400352955,0.009352819062769,-0.045207217335701,0.046299360692501) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(-0.003637737594545,0.053999401628971,-0.025982253253460,0.085286289453506,-0.038232449442148,-0.003357523819432,0.019124839454889,0.010528470389545,0.079933688044548,0.040334943681955,-0.046162165701389,-0.009675074368715,0.064381018280983,0.058273807168007,0.018352054059505,0.114501707255840) * FEATURE6_texOff(vec2(-1,0));
res += mat4(-0.075913004577160,-0.014189227484167,0.038982685655355,0.006324842106551,-0.097546137869358,0.003622778225690,0.019447363913059,0.095571197569370,0.135604709386826,0.049295168370008,-0.079923085868359,0.036509346216917,-0.017395626753569,0.088209778070450,-0.022391302511096,-0.095843046903610) * FEATURE6_texOff(vec2(-1,1));
res += mat4(-0.012688265182078,-0.001109596109018,0.027168041095138,-0.001353993546218,0.035744566470385,0.028336711227894,0.019592208787799,-0.031412608921528,-0.038074478507042,0.046920374035835,0.147352516651154,-0.012693665921688,-0.089284695684910,0.011077631264925,0.034648783504963,-0.016039190813899) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.036771405488253,0.062919355928898,0.001452693482861,-0.022909617051482,0.019499069079757,0.027754859998822,0.031895898282528,-0.062852263450623,-0.003088550176471,0.023721070960164,-0.094417460262775,-0.144629836082458,0.010917915962636,0.081747315824032,0.072464801371098,0.033016625791788) * FEATURE6_texOff(vec2(0,0));
res += mat4(-0.015265150927007,0.038760580122471,0.019468575716019,0.015608457848430,-0.056276954710484,-0.003197620389983,0.021945357322693,-0.000242725378484,-0.004804905503988,-0.092415966093540,0.028286250308156,0.171778380870819,0.014269471168518,-0.023796223104000,0.066222719848156,0.103560596704483) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.028934789821506,0.045757055282593,0.070902772247791,-0.013711966574192,-0.000896532961633,0.002568393480033,0.029195474460721,-0.013952915556729,0.053256463259459,0.006594173144549,0.011962089687586,-0.011310393922031,-0.043799541890621,-0.021185021847486,-0.055995456874371,-0.034186519682407) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.013608499430120,0.097807921469212,0.046452905982733,0.066064573824406,0.029539829120040,0.009173400700092,0.022318650037050,0.037042099982500,0.013802941888571,-0.240311890840530,0.029360560700297,-0.148604348301888,-0.023058885708451,-0.031755272299051,-0.028310377150774,-0.092000156641006) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.023412149399519,0.039486318826675,0.015753369778395,0.155453637242317,0.015880621969700,-0.030686177313328,-0.044749163091183,0.153104394674301,0.024199895560741,-0.107822157442570,-0.031810596585274,-0.074750587344170,0.044915560632944,0.027293257415295,-0.014868277125061,0.074417300522327) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.000429530278780,-0.004130803048611,0.001991682453081,-0.074911683797836) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_4x_Photo] mapping 1_5

vec4 hook()
{
vec4 res = vec4(0.096891209483147,-0.165506973862648,0.130551323294640,-0.030005298554897);
res += mat4(-0.050231646746397,-0.058112386614084,0.053236261010170,-0.000310756615363,-0.088025532662868,0.123305790126324,-0.043473564088345,0.000741909432691,0.056567475199699,0.107231356203556,-0.017178272828460,-0.015001110732555,-0.028132012113929,0.106087125837803,0.000585353933275,-0.021173886954784) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.029811538755894,0.007117775268853,0.051623340696096,0.004379953723401,-0.048418588936329,-0.054845180362463,-0.053734168410301,0.006618517916650,0.064959600567818,0.022025402635336,0.114098869264126,-0.006818149704486,-0.050949428230524,0.105868339538574,0.020231043919921,-0.018109684810042) * FEATURE1_texOff(vec2(-1,0));
res += mat4(0.023739790543914,0.063392437994480,0.045445539057255,0.009350232779980,-0.063326381146908,-0.006633223034441,-0.087839983403683,0.006931899581105,-0.025840586051345,-0.340783417224884,-0.000927628017962,-0.006736569572240,-0.078241318464279,-0.025604918599129,-0.049139492213726,-0.002017968101427) * FEATURE1_texOff(vec2(-1,1));
res += mat4(-0.093982592225075,-0.030098235234618,0.009241363964975,-0.003240280551836,-0.090573817491531,-0.066824302077293,0.115468353033066,-0.001698384410702,0.148941203951836,-0.025383615866303,0.037667270749807,-0.010576278902590,0.004613665863872,-0.103648833930492,0.026396742090583,-0.016351440921426) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.023633526638150,-0.037950098514557,-0.015937121585011,0.002353700343519,0.038453537970781,0.110506653785706,0.147728085517883,0.003566313069314,-0.046376500278711,0.089743055403233,-0.125038474798203,-0.008087965659797,0.061550773680210,-0.041539307683706,0.028316767886281,-0.008596957661211) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.014758107252419,-0.043520495295525,0.013772533275187,0.012016758322716,0.041835673153400,0.026071308180690,0.062927305698395,0.014473807066679,0.014794477261603,0.169983282685280,0.123529873788357,-0.004572932608426,0.007417052984238,0.056837588548660,-0.064142547547817,0.004243297968060) * FEATURE1_texOff(vec2(0,1));
res += mat4(-0.026176424697042,-0.024843614548445,0.016348153352737,-0.005244632251561,-0.071247994899750,-0.022499738261104,-0.041557252407074,-0.011673727072775,-0.072942130267620,-0.025064243003726,0.002012365031987,-0.010490850545466,-0.067323796451092,0.047955431044102,-0.037261031568050,-0.011999144218862) * FEATURE1_texOff(vec2(1,-1));
res += mat4(0.008447185158730,-0.008677827194333,0.006618710234761,0.002045737346634,0.106686942279339,-0.083262056112289,0.026075446978211,-0.003573196707293,0.075766324996948,-0.103158384561539,0.156907767057419,-0.006563330069184,-0.068532034754753,-0.007688721641898,-0.016166409477592,-0.004703725222498) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.057171896100044,0.007924827747047,0.015430113300681,0.015996931120753,-0.039785619825125,-0.016214251518250,0.056995056569576,0.010414388030767,-0.065152384340763,-0.030090099200606,-0.179717108607292,-0.000812255020719,0.053301513195038,-0.050044719129801,0.009924827143550,0.002718412084505) * FEATURE1_texOff(vec2(1,1));
res += mat4(0.005056089255959,-0.079100698232651,-0.015886485576630,0.003582315286621,0.010926649905741,0.021002406254411,-0.027020368725061,0.003521011909470,0.056007955223322,-0.032861992716789,0.146339982748032,-0.016750847920775,-0.008672666735947,-0.086689494550228,-0.051230024546385,0.017607586458325) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(-0.078276678919792,-0.133997023105621,0.038688048720360,0.002998419338837,0.010502423159778,0.054709494113922,-0.054914966225624,-0.001532653579488,0.039258111268282,-0.184909015893936,0.002116456627846,0.000362214748748,-0.008833558298647,-0.082993380725384,-0.059158746153116,0.011327793821692) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.001776107703336,0.063263595104218,-0.006979862693697,0.001790985232219,-0.033843737095594,-0.055425539612770,-0.062391187995672,-0.004779200535268,-0.010778116993606,0.174420252442360,0.053175523877144,0.007513595744967,0.040344994515181,0.115113295614719,0.006510189734399,-0.000022492175049) * FEATURE2_texOff(vec2(-1,1));
res += mat4(-0.077631205320358,0.020817587152123,-0.070374339818954,-0.002550344448537,0.030129283666611,-0.003610806306824,-0.017436280846596,0.006314252503216,-0.060811016708612,0.056338008493185,-0.042326483875513,-0.021002506837249,-0.072678148746490,0.048370461910963,0.020540919154882,0.019199680536985) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.041598107665777,0.059408374130726,0.078861646354198,0.001947088865563,0.007315075024962,-0.021847743541002,-0.028083056211472,0.003220797050744,0.094303846359253,0.033421281725168,0.016428399831057,-0.006618483457714,-0.045944254845381,0.001183983637020,0.084735929965973,0.010950445197523) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.032596196979284,-0.038609225302935,-0.074476435780525,0.003771575400606,0.018924018368125,0.049340065568686,-0.028766836971045,-0.006115863099694,-0.067878358066082,-0.150809109210968,0.011781373061240,0.001375907217152,0.028601540252566,-0.068552911281586,-0.049933727830648,0.001965622417629) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.055005759000778,-0.057955965399742,0.057647950947285,-0.003756242338568,0.021820664405823,-0.001117659965530,-0.051887139678001,0.008489841595292,-0.040303599089384,0.007712579797953,0.028218014165759,-0.021080983802676,0.064189158380032,-0.011030645109713,0.009102984331548,0.014490625821054) * FEATURE2_texOff(vec2(1,-1));
res += mat4(-0.033708069473505,-0.034384541213512,-0.015738049522042,0.003677348606288,-0.046417776495218,-0.009572342038155,-0.037721481174231,0.005725452210754,0.068322166800499,0.042841050773859,-0.077768892049789,-0.011410464532673,0.018330890685320,0.020365675911307,-0.025467190891504,0.005637483671308) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.045233946293592,0.057830773293972,0.064273975789547,0.006714090239257,-0.007173061370850,-0.000721465388779,-0.055200543254614,-0.010096893645823,-0.035761851817369,0.079197987914085,0.137152552604675,0.001583314151503,0.028825243934989,0.003713046200573,0.040648963302374,-0.000883414933924) * FEATURE2_texOff(vec2(1,1));
res += mat4(-0.040941461920738,-0.002420083153993,0.050570394843817,0.004501133225858,0.077825054526329,0.004344679415226,0.070016682147980,0.006325015798211,-0.022794106975198,0.093312293291092,0.226055935025215,-0.003847366664559,0.049379564821720,0.035049382597208,0.125688821077347,-0.004742150194943) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.050107728689909,-0.007757093291730,-0.058571856468916,0.007487544324249,0.030830010771751,-0.003371748840436,0.120746113359928,0.014079066924751,-0.016871517524123,0.001949034165591,0.053601089864969,-0.004318910185248,-0.012331563048065,-0.000281359651126,0.054948516190052,0.000886886962689) * FEATURE3_texOff(vec2(-1,0));
res += mat4(0.012596840970218,-0.080097950994968,0.021533852443099,0.002780360169709,-0.032603640109301,0.016439912840724,0.130566045641899,0.009880320169032,0.120959080755711,-0.065286070108414,0.080303080379963,-0.000991640845314,0.027115549892187,-0.066128984093666,0.030585343018174,-0.000832162331790) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.024794859811664,0.038253463804722,0.062519960105419,0.005503133405000,0.147986009716988,0.047664187848568,0.081052921712399,0.001742418739013,-0.014921667985618,-0.044999741017818,0.026386599987745,-0.000275983707979,0.067312017083168,-0.058229155838490,0.051511354744434,-0.000897125806659) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.034103404730558,0.026005880907178,-0.020707672461867,0.010449976660311,0.126258984208107,0.037739939987659,0.171542674303055,0.010651996359229,-0.081504620611668,-0.038086727261543,-0.164294168353081,-0.004536468070000,0.003503117943183,-0.021681997925043,-0.098403252661228,-0.000812633079477) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.007870668545365,0.095619812607765,0.137664571404457,0.006147528998554,0.015477017499506,0.004277413710952,0.098868370056152,0.008684774860740,0.125523895025253,0.000520135392435,-0.076759770512581,-0.003600175958127,0.025202266871929,0.027324540540576,0.016931746155024,-0.003335592104122) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.038748685270548,0.023937959223986,0.002440872834995,-0.003827800275758,0.203933805227280,-0.023070257157087,0.051010988652706,-0.001698347739875,-0.034377086907625,-0.002019866369665,0.084046170115471,0.003730062860996,-0.026729362085462,0.069488584995270,0.018282093107700,0.000139103329275) * FEATURE3_texOff(vec2(1,-1));
res += mat4(0.040021255612373,0.013894384726882,0.025515874847770,0.001557352836244,0.123323746025562,0.028305571526289,0.115345448255539,0.006724377162755,-0.080291025340557,-0.029230665415525,-0.127094089984894,-0.002944036619738,0.048809178173542,0.000569515454117,0.012183033861220,-0.004005561582744) * FEATURE3_texOff(vec2(1,0));
res += mat4(0.001977406674996,-0.025480514392257,-0.056079942733049,0.002561310771853,0.033500615507364,-0.016690066084266,0.115455016493797,0.006982597988099,0.164919883012772,-0.025922253727913,-0.001479166909121,-0.003192587755620,0.074774749577045,-0.027250478044152,-0.003294877009466,-0.002557188738137) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.002292153891176,0.041881989687681,0.251954227685928,-0.009210436604917,-0.151120200753212,-0.177674502134323,-0.096508830785751,0.005185549147427,0.140819728374481,0.006711252033710,-0.019925177097321,0.001860526390374,0.007512453012168,0.049430873245001,0.015636406838894,0.012199206277728) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.009474306367338,-0.060044694691896,0.060131486505270,-0.002090538851917,-0.067206963896751,0.042501170188189,-0.003457295242697,0.004906556569040,0.030767180025578,0.185019373893738,0.076675005257130,-0.000509043515194,-0.033091649413109,-0.016227906569839,-0.021260026842356,-0.001224901876412) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.063341893255711,-0.031360372900963,0.050726454705000,-0.003436737926677,0.011207182891667,0.009373573586345,0.012191683985293,0.008252257481217,-0.058440592139959,-0.043563451617956,-0.017404118552804,-0.008119435049593,0.122171774506569,0.085451595485210,-0.037784826010466,-0.004704118240625) * FEATURE4_texOff(vec2(-1,1));
res += mat4(0.104560971260071,-0.003710753284395,0.071616090834141,-0.004303437191993,-0.220381304621696,-0.013422213494778,-0.044575385749340,-0.002909788861871,0.157555624842644,-0.056713562458754,0.041079185903072,0.012340920977294,0.047223765403032,-0.058210983872414,0.017332516610622,0.020237334072590) * FEATURE4_texOff(vec2(0,-1));
res += mat4(-0.025297271087766,-0.035480521619320,-0.192718178033829,-0.002309605246410,-0.122543394565582,0.009043815545738,0.040936034172773,0.003558224067092,0.097723118960857,-0.141526609659195,0.030302839353681,-0.001127156894654,-0.102406196296215,-0.018103826791048,-0.038792036473751,0.004380861297250) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.075563296675682,-0.004240168258548,-0.040934115648270,-0.005569597240537,0.112436920404434,0.027599152177572,-0.042338944971561,0.010676869191229,0.000029358636311,0.167673647403717,0.008711614646018,-0.012031782418489,0.119669206440449,-0.042180806398392,-0.164355650544167,-0.005459532141685) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.073607608675957,-0.005790649913251,0.039149984717369,-0.000201878778171,-0.146345019340515,-0.051233187317848,-0.027318520471454,-0.009392702020705,0.113616794347763,0.100937739014626,-0.041466716676950,0.008872572332621,0.072265900671482,0.029306335374713,0.038920380175114,0.024891613051295) * FEATURE4_texOff(vec2(1,-1));
res += mat4(0.008194126188755,-0.021659398451447,-0.048517443239689,-0.003532261820510,-0.114804029464722,-0.000017730997570,0.043437756597996,0.004955341108143,0.024551607668400,0.070451855659485,0.134445875883102,-0.010447960346937,-0.120268225669861,0.038745619356632,-0.137591436505318,0.006796486675739) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.071581140160561,0.010813132859766,-0.014621985144913,-0.006149251479656,0.104403607547283,0.012405395507813,-0.103121533989906,0.014472557231784,0.088146813213825,-0.144881501793861,-0.036244478076696,-0.011575896292925,0.049671083688736,0.044143877923489,-0.019890589639544,-0.008954648859799) * FEATURE4_texOff(vec2(1,1));
res += mat4(0.066884852945805,0.082675039768219,-0.144739791750908,0.011850119568408,0.036642536520958,-0.014224904589355,-0.016310025006533,0.003230712609366,0.039822090417147,-0.051931880414486,-0.096969574689865,0.009249971248209,0.101076669991016,-0.078990899026394,-0.089248299598694,0.015549218282104) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(0.014881236478686,-0.091139242053032,0.055272392928600,0.000358239980415,-0.041446570307016,0.036261081695557,0.010438086465001,0.010625250637531,-0.056587014347315,-0.038507040590048,-0.035802230238914,-0.001363539020531,-0.059299986809492,-0.190759703516960,0.028040604665875,0.004567842464894) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.035086553543806,-0.196267619729042,-0.008270700462162,0.001810619141906,-0.059683218598366,-0.006071502342820,-0.037813771516085,0.004536615684628,-0.068126007914543,0.081307366490364,0.031815674155951,-0.000049806829338,0.004945485386997,0.158844515681267,0.002998623298481,-0.002305889734998) * FEATURE5_texOff(vec2(-1,1));
res += mat4(-0.083691932260990,0.050641041249037,-0.003018591552973,0.010262808762491,0.023861812427640,-0.043495085090399,0.033893123269081,0.006214836146683,-0.014852798543870,0.116059727966785,-0.083868488669395,0.008678557351232,-0.124437555670738,0.109426267445087,-0.123996756970882,0.009081737138331) * FEATURE5_texOff(vec2(0,-1));
res += mat4(-0.008782447315753,0.150686740875244,0.080917984247208,-0.001734676887281,0.033045697957277,-0.029108708724380,-0.037434056401253,0.004148110747337,0.069334678351879,0.033342480659485,0.099485099315643,0.002922511193901,0.063761219382286,0.086702227592468,0.175999581813812,0.000271205353783) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.007984884083271,0.067341282963753,0.071026563644409,0.008730994537473,-0.055534359067678,0.015004295855761,0.032460194081068,-0.000441564625362,-0.090533912181854,-0.062000874429941,-0.051047809422016,0.000543022528291,-0.038054652512074,-0.138269886374474,-0.155076757073402,0.004528336692601) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.045066289603710,-0.100345864892006,0.042695444077253,0.005543131846935,-0.003208678448573,0.027671666815877,-0.024498855695128,0.000593309116084,0.006659402046353,-0.010269541293383,-0.003936095628887,0.010542817413807,0.016317659988999,-0.090963102877140,0.049527388066053,0.012859420850873) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.013804624788463,-0.062426336109638,0.093816071748734,-0.000727836508304,0.007835659198463,0.035852219909430,-0.023546552285552,-0.000481367809698,-0.091478928923607,0.039751332253218,-0.040701199322939,0.005293886642903,-0.157304212450981,0.036401413381100,-0.027059113606811,0.003078693756834) * FEATURE5_texOff(vec2(1,0));
res += mat4(-0.058703433722258,0.005281232297421,-0.061016499996185,0.010406577028334,0.020776530727744,-0.020504442974925,-0.028303794562817,-0.006207141093910,-0.033796999603510,0.011508787050843,0.080920800566673,0.000242467707722,-0.016100503504276,0.031018046662211,-0.008427558466792,0.009656490758061) * FEATURE5_texOff(vec2(1,1));
res += mat4(0.015125749632716,-0.040663521736860,0.088444642722607,-0.013124873861670,-0.004304086789489,-0.105645067989826,0.035322703421116,-0.010502509772778,0.025838911533356,0.120174959301949,0.108615510165691,0.003566505154595,0.029341993853450,0.107921980321407,0.007766706869006,-0.019880026578903) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.011986145749688,-0.016194973140955,-0.015654455870390,0.000623264175374,0.029808688908815,0.008598013781011,0.037791844457388,-0.000118996176752,0.071040369570255,0.031344305723906,-0.021402405574918,0.001733770361170,-0.010331169702113,-0.096924811601639,-0.023492744192481,-0.009144579991698) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.034191884100437,-0.038217440247536,-0.013161071576178,0.003405124880373,-0.022142902016640,0.030630487948656,-0.006239472888410,0.006050384603441,-0.012923480942845,-0.072601288557053,-0.036862332373857,-0.007362172473222,-0.031714633107185,-0.114993438124657,0.055036552250385,-0.002016484504566) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.043309725821018,0.035128977149725,-0.029190013185143,-0.012938159517944,0.022817535325885,0.009883155114949,0.012082092463970,-0.016672907397151,0.174176573753357,-0.054956149309874,0.187706351280212,0.015228163450956,0.052266217768192,0.016678152605891,-0.048256814479828,-0.012885139323771) * FEATURE6_texOff(vec2(0,-1));
res += mat4(-0.008524471893907,-0.001501568243839,-0.090579897165298,-0.003555014496669,0.004903161432594,-0.052580006420612,0.010221582837403,-0.007881672121584,0.010017969645560,-0.023194964975119,-0.054037101566792,0.003582318080589,0.007797602564096,0.121060848236084,-0.033158954232931,-0.008425461128354) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.010171270929277,0.006358306389302,-0.053984835743904,-0.004235998261720,-0.020606867969036,-0.009234088473022,0.060980156064034,-0.000364669889677,0.056561000645161,0.104412026703358,0.163382068276405,-0.010149681009352,0.037122614681721,0.024726321920753,-0.042034000158310,-0.004087987355888) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.065166078507900,0.016501864418387,-0.022393662482500,-0.008755400776863,0.016063503921032,0.044519677758217,-0.011570572853088,-0.020649736747146,0.162408903241158,0.050257399678230,0.002639475744218,0.013519172556698,-0.115054458379745,-0.017434503883123,-0.037954285740852,-0.009468605741858) * FEATURE6_texOff(vec2(1,-1));
res += mat4(-0.005539294332266,0.011515064164996,-0.087217651307583,-0.002057369332761,0.076567359268665,0.018306983634830,-0.016901649534702,-0.011222925037146,0.175272166728973,-0.059133768081665,0.061880636960268,-0.000821484776679,0.027329705655575,-0.054880488663912,0.010269094258547,-0.010502153076231) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.014009005390108,0.032844927161932,-0.029435563832521,-0.007548599969596,-0.029596146196127,0.010344404727221,0.057885572314262,-0.003371938830242,-0.071101903915405,-0.020314371213317,0.001415390986949,-0.012242189608514,0.010049771517515,0.029885951429605,0.015756519511342,-0.007915170863271) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.033189404755831,-0.037275396287441,0.006714169867337,-0.000666635751259) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND FEATURE1
//!BIND FEATURE2
//!BIND FEATURE3
//!BIND FEATURE4
//!BIND FEATURE5
//!BIND FEATURE6
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_4x_Photo] mapping 1_6

vec4 hook()
{
vec4 res = vec4(-0.196258798241615,-0.058753333985806,-0.019517634063959,-0.058787066489458);
res += mat4(0.017687199637294,-0.099614351987839,-0.014218550175428,-0.131441146135330,0.007562163285911,-0.036153826862574,-0.012613884173334,-0.014991069212556,-0.066980831325054,0.023138616234064,0.044226225465536,0.057862661778927,0.065501481294632,-0.099301025271416,-0.097098089754581,0.065910242497921) * FEATURE1_texOff(vec2(-1,-1));
res += mat4(-0.042005587369204,0.103772275149822,0.049894731491804,0.108812265098095,-0.010744566097856,-0.046320635825396,0.064349018037319,-0.016863655298948,0.089883409440517,0.192775219678879,-0.068302080035210,-0.121157266199589,0.058819878846407,0.055924270302057,0.020131601020694,0.053165301680565) * FEATURE1_texOff(vec2(-1,0));
res += mat4(-0.004645099397749,-0.024927230551839,-0.063875436782837,-0.060386065393686,0.005438460968435,0.104008533060551,-0.014634064398706,-0.061486545950174,0.051193747669458,-0.051352024078369,-0.039266742765903,-0.084411576390266,-0.016341777518392,0.082055367529392,0.001357824658044,-0.074409417808056) * FEATURE1_texOff(vec2(-1,1));
res += mat4(0.034262422472239,-0.027752794325352,0.083652324974537,-0.108082108199596,-0.021624293178320,0.048740100115538,0.011481369845569,0.113472573459148,-0.087845750153065,-0.071872167289257,-0.347398012876511,-0.096428662538528,0.007542420178652,0.002160047879443,0.140991747379303,-0.040798760950565) * FEATURE1_texOff(vec2(0,-1));
res += mat4(-0.002633233554661,0.087676301598549,-0.020997893065214,-0.091976888477802,0.100265100598335,0.112163580954075,0.027954479679465,0.038472965359688,0.234968900680542,0.251596480607986,0.213629782199860,0.298934459686279,-0.049960572272539,-0.003817814867944,0.002598169026896,-0.007473549805582) * FEATURE1_texOff(vec2(0,0));
res += mat4(0.038676343858242,-0.033237773925066,0.051317829638720,-0.004689414985478,-0.001049686572514,0.017491113394499,0.064602583646774,-0.040372092276812,-0.074590012431145,-0.102038376033306,-0.024347880855203,-0.161582618951797,0.026778778061271,0.002854399383068,0.010794163681567,0.121321953833103) * FEATURE1_texOff(vec2(0,1));
res += mat4(0.128458097577095,0.055554099380970,0.115944698452950,-0.012906678952277,-0.011108877137303,-0.032878436148167,0.199780046939850,-0.159779474139214,0.082847230136395,0.017131030559540,0.205918148159981,-0.025841627269983,0.143664315342903,0.061951629817486,0.042743060737848,-0.017744731158018) * FEATURE1_texOff(vec2(1,-1));
res += mat4(-0.045477747917175,0.050365608185530,0.086875684559345,-0.043372675776482,-0.039082355797291,-0.010125458240509,0.156571283936501,0.021426457911730,-0.273230552673340,-0.029272072017193,-0.039325252175331,-0.116889268159866,-0.039999857544899,-0.024557668715715,-0.039725843816996,-0.071975424885750) * FEATURE1_texOff(vec2(1,0));
res += mat4(0.018236199393868,-0.082009151577950,-0.001385394600220,0.161573067307472,-0.070001296699047,-0.052679527550936,0.076927721500397,0.024912631139159,0.176804438233376,0.084502927958965,0.033967752009630,0.237472236156464,-0.037617165595293,-0.058654125779867,-0.040125217288733,-0.094263501465321) * FEATURE1_texOff(vec2(1,1));
res += mat4(-0.113998048007488,-0.000794744817540,-0.079166151583195,-0.149467080831528,-0.002315402496606,0.053474742919207,0.045726384967566,0.009933697059751,-0.090162053704262,0.055310845375061,-0.053910151124001,-0.024499839171767,0.039241496473551,0.035464454442263,0.037343468517065,-0.099453948438168) * FEATURE2_texOff(vec2(-1,-1));
res += mat4(0.069978713989258,0.022418875247240,0.056467451155186,0.120348423719406,0.027226606383920,-0.018924120813608,0.002088666427881,-0.115466780960560,0.085789643228054,-0.213485240936279,0.033059421926737,0.013761461712420,-0.087878674268723,-0.018992159515619,0.013395835645497,0.081909306347370) * FEATURE2_texOff(vec2(-1,0));
res += mat4(0.020457230508327,0.003643926698714,-0.004931806121022,-0.046109724789858,-0.010404020547867,-0.002532909624279,0.046626523137093,-0.007975365966558,0.079522579908371,0.103389695286751,0.090749889612198,-0.199261561036110,-0.031395789235830,-0.128168225288391,-0.043859153985977,0.077883377671242) * FEATURE2_texOff(vec2(-1,1));
res += mat4(0.055582359433174,0.012986708432436,0.022556392475963,0.249426633119583,0.014491756446660,0.038464214652777,0.061751179397106,-0.030264081433415,-0.015318211168051,0.025620987638831,0.042338743805885,0.182256489992142,0.038651093840599,0.085463345050812,0.042055770754814,-0.025086846202612) * FEATURE2_texOff(vec2(0,-1));
res += mat4(0.005257729906589,-0.028781870380044,-0.029635842889547,-0.212583839893341,-0.029665371403098,-0.048181377351284,-0.017347106710076,0.039188858121634,0.056059248745441,-0.137406602501869,0.003653731662780,-0.122842364013195,-0.104637093842030,-0.019369842484593,-0.095907755196095,-0.176645010709763) * FEATURE2_texOff(vec2(0,0));
res += mat4(-0.009070106782019,-0.025467984378338,0.041815392673016,-0.006347046233714,0.001301495591179,0.035488974303007,0.021865386515856,-0.022059397771955,0.033882670104504,0.045990530401468,0.076606363058090,-0.016566585749388,-0.001339869457297,0.039231549948454,0.023478675633669,0.044009178876877) * FEATURE2_texOff(vec2(0,1));
res += mat4(-0.081742569804192,0.056298583745956,0.079943068325520,-0.133293420076370,-0.022301841527224,0.007719188462943,0.047809340059757,0.010162787511945,-0.130179882049561,-0.037315085530281,-0.140620365738869,0.000616463657934,-0.093021772801876,-0.041862659156322,0.065448865294456,0.029874751344323) * FEATURE2_texOff(vec2(1,-1));
res += mat4(0.115068137645721,0.032628137618303,0.034009158611298,0.253640055656433,0.002567012794316,-0.051184132695198,-0.092644892632961,0.051836453378201,0.220003485679626,0.111624106764793,0.084600307047367,0.068314686417580,-0.029298245906830,-0.023117573931813,0.044447649270296,0.057932909578085) * FEATURE2_texOff(vec2(1,0));
res += mat4(-0.024018295109272,-0.043419647961855,0.038872264325619,-0.093988128006458,-0.009195902384818,0.002382668899372,0.005474111065269,-0.052640080451965,0.016868807375431,-0.089738249778748,0.082680001854897,-0.023777356371284,-0.049724332988262,0.007496016100049,0.060029011219740,0.001951804850250) * FEATURE2_texOff(vec2(1,1));
res += mat4(0.025326730683446,0.006325632799417,-0.002192084910348,-0.069437541067600,0.084712468087673,0.033443454653025,-0.030196566134691,-0.044737789779902,0.012514279223979,0.091866113245487,0.074364364147186,-0.011109845712781,-0.069494910538197,-0.028358263894916,-0.043595440685749,0.012396566569805) * FEATURE3_texOff(vec2(-1,-1));
res += mat4(0.009869916364551,-0.137880146503448,-0.054565470665693,-0.125313356518745,0.075554028153419,0.143179267644882,0.084087967872620,-0.063016921281815,-0.080438636243343,-0.003072911174968,0.001064644078724,-0.074057295918465,0.052518330514431,-0.014648527838290,0.027787653729320,0.019907755777240) * FEATURE3_texOff(vec2(-1,0));
res += mat4(-0.032643061131239,-0.037474345415831,0.030916647985578,-0.201691478490829,0.067820265889168,0.027968777343631,0.019064230844378,0.041560366749763,0.003220554674044,0.078371621668339,-0.059013072401285,-0.021886989474297,-0.006836559157819,0.032071616500616,0.006406794302166,-0.103526994585991) * FEATURE3_texOff(vec2(-1,1));
res += mat4(-0.007214652374387,0.000081501617387,0.031837269663811,0.075216718018055,0.117872819304466,-0.012224904261529,0.013563008978963,-0.047566831111908,0.029341466724873,0.051158402115107,-0.002079274272546,0.072067290544510,-0.102383539080620,-0.017836170271039,-0.148973509669304,-0.147136434912682) * FEATURE3_texOff(vec2(0,-1));
res += mat4(0.004105750937015,-0.019648175686598,-0.008588281460106,0.103140011429787,0.072249934077263,-0.023125523701310,0.092389769852161,-0.150739073753357,-0.101772837340832,-0.034288592636585,-0.098173730075359,-0.075249180197716,0.025265613570809,0.183111101388931,0.086645320057869,0.010393742471933) * FEATURE3_texOff(vec2(0,0));
res += mat4(0.047870736569166,0.067432485520840,0.013688803650439,0.018932232633233,0.005693463608623,0.018683055415750,0.016810791566968,-0.047231089323759,0.079135686159134,-0.016389755532146,0.045627471059561,0.031888287514448,0.040256354957819,-0.017325721681118,0.028839781880379,-0.052533440291882) * FEATURE3_texOff(vec2(0,1));
res += mat4(-0.087926603853703,-0.089650727808475,-0.024624789133668,-0.000242656489718,0.071871049702168,-0.011417036876082,-0.042231433093548,0.032794684171677,-0.004851009231061,-0.021698154509068,0.002488820580766,-0.028422290459275,-0.018892491236329,-0.058596905320883,0.056356213986874,0.041003406047821) * FEATURE3_texOff(vec2(1,-1));
res += mat4(-0.032694209367037,-0.090869016945362,0.050565991550684,-0.081593245267868,0.059993412345648,0.030484419316053,0.096574105322361,0.040988747030497,-0.130951523780823,-0.078095026314259,0.036158889532089,-0.015969337895513,-0.138640955090523,0.025299722328782,0.111268058419228,-0.223381921648979) * FEATURE3_texOff(vec2(1,0));
res += mat4(-0.078188270330429,0.125826463103294,0.088696800172329,0.126795977354050,-0.003596098627895,0.000973652990069,0.065645821392536,-0.051642417907715,0.004598109517246,0.011308811604977,-0.035651084035635,0.052982676774263,0.032954253256321,0.009288245812058,0.093484327197075,0.147517353296280) * FEATURE3_texOff(vec2(1,1));
res += mat4(-0.049275137484074,0.113292083144188,-0.045453827828169,0.031246408820152,0.016051340848207,-0.193747416138649,0.143996208906174,0.016632441431284,-0.138512820005417,-0.084393560886383,-0.219849973917007,0.013369484804571,0.042429789900780,0.037129350006580,0.041921291500330,0.173737391829491) * FEATURE4_texOff(vec2(-1,-1));
res += mat4(-0.017126047983766,-0.038225613534451,0.020265528932214,-0.028370372951031,-0.052958544343710,0.222960159182549,-0.047856260091066,-0.193632751703262,0.175490915775299,0.030055444687605,0.068126477301121,0.073270611464977,-0.097586736083031,-0.008642157539725,-0.033457446843386,0.039430815726519) * FEATURE4_texOff(vec2(-1,0));
res += mat4(0.051260568201542,0.112192295491695,0.022899426519871,-0.133370593190193,-0.007201649714261,0.004439260344952,0.023064037784934,0.068336576223373,0.023054867982864,-0.175998836755753,0.056237712502480,-0.143062725663185,-0.010751247406006,-0.023065073415637,-0.042500793933868,0.205813720822334) * FEATURE4_texOff(vec2(-1,1));
res += mat4(-0.100756853818893,-0.007300406228751,-0.083302654325962,-0.033622484654188,0.081728398799896,0.048027247190475,0.284463971853256,0.002012809040025,-0.164863958954811,-0.044545594602823,-0.261845529079437,-0.077069401741028,-0.006528486497700,0.063696607947350,0.001345923170447,-0.109777085483074) * FEATURE4_texOff(vec2(0,-1));
res += mat4(0.020025147125125,0.039521664381027,0.005381254479289,0.026181751862168,-0.060346353799105,-0.013794433325529,0.003951326012611,-0.069957554340363,-0.025291955098510,0.314117491245270,-0.000551891338546,0.039806939661503,-0.143258139491081,-0.004102602135390,-0.092072941362858,-0.114145860075951) * FEATURE4_texOff(vec2(0,0));
res += mat4(0.052211068570614,-0.010541072115302,0.032448410987854,-0.061387386173010,0.007955101318657,0.035741169005632,-0.004221035167575,0.014120445586741,0.119649425148964,0.053155243396759,0.149112343788147,0.167938247323036,-0.023226764053106,0.030223879963160,-0.114294968545437,0.075759068131447) * FEATURE4_texOff(vec2(0,1));
res += mat4(-0.105571895837784,0.023523543030024,-0.112758524715900,-0.067845165729523,0.129751592874527,0.108231514692307,0.294284701347351,0.101687677204609,-0.009057550691068,0.031854718923569,0.016614817082882,0.034544911235571,-0.104136973619461,-0.046748552471399,-0.111706972122192,-0.110534012317657) * FEATURE4_texOff(vec2(1,-1));
res += mat4(-0.073276579380035,0.119586348533630,0.025124000385404,0.027927391231060,0.036751214414835,-0.122902847826481,-0.014365389943123,-0.097687467932701,-0.233537986874580,-0.128463402390480,0.161973059177399,-0.121035486459732,-0.080637812614441,0.040839266031981,-0.005629575811327,0.171219870448112) * FEATURE4_texOff(vec2(1,0));
res += mat4(0.030362624675035,-0.052716869860888,0.092359393835068,0.142370328307152,-0.039707317948341,0.117721006274223,0.057355262339115,0.017671121284366,-0.075362905859947,0.019389472901821,-0.001032210187986,-0.057158458977938,-0.062226675450802,-0.012603464536369,-0.069047369062901,-0.076247505843639) * FEATURE4_texOff(vec2(1,1));
res += mat4(-0.089192196726799,-0.030938306823373,0.043837465345860,-0.127920120954514,-0.071518637239933,-0.045845869928598,0.007924219593406,-0.075495876371861,0.039321482181549,0.007099593523890,-0.118777111172676,-0.241622075438499,-0.179137438535690,-0.178980857133865,-0.079670183360577,-0.091674149036407) * FEATURE5_texOff(vec2(-1,-1));
res += mat4(-0.004996265284717,0.111918181180954,-0.023408733308315,-0.151064619421959,0.067350424826145,-0.085522957146168,-0.017244249582291,-0.081908084452152,-0.006324107293040,0.019137782976031,0.040697757154703,0.069063365459442,0.021890806034207,0.066745683550835,0.080655813217163,-0.032253790646791) * FEATURE5_texOff(vec2(-1,0));
res += mat4(-0.007507023401558,-0.173032566905022,-0.041131891310215,0.047732327133417,0.021854614838958,0.118282496929169,0.061771430075169,-0.061844147741795,-0.052429888397455,-0.019579732790589,-0.007476300001144,0.080504864454269,-0.030003866180778,-0.116026699542999,0.069206498563290,0.135160312056541) * FEATURE5_texOff(vec2(-1,1));
res += mat4(0.095867700874805,0.077250465750694,-0.196931466460228,0.180817618966103,-0.102829843759537,-0.019141692668200,0.005734984297305,-0.102641403675079,0.105183251202106,-0.027074189856648,0.170307904481888,0.122637256979942,0.187335222959518,0.050321586430073,0.138317853212357,0.179948821663857) * FEATURE5_texOff(vec2(0,-1));
res += mat4(0.057471115142107,0.184636443853378,0.150121361017227,-0.000521642854437,0.071342729032040,0.045158788561821,0.100297331809998,0.210007771849632,-0.120106540620327,-0.168626844882965,-0.110010847449303,-0.189871162176132,-0.166572615504265,-0.143776088953018,0.069792605936527,-0.296005547046661) * FEATURE5_texOff(vec2(0,0));
res += mat4(-0.074193604290485,-0.022105831652880,0.011415415443480,0.030407018959522,0.026722997426987,-0.001210853923112,0.006804981268942,-0.055624380707741,0.004592588637024,0.004555058665574,0.023169465363026,0.159178838133812,-0.019396970048547,0.012910518795252,-0.026174206286669,0.127226293087006) * FEATURE5_texOff(vec2(0,1));
res += mat4(0.007180191576481,0.059368520975113,0.237791001796722,-0.090891130268574,-0.015752661973238,0.002932979259640,0.025420730933547,-0.022223195061088,-0.029441801831126,-0.015869572758675,-0.116005308926105,0.027340667322278,-0.043862145394087,0.061380762606859,0.107236936688423,0.030695419758558) * FEATURE5_texOff(vec2(1,-1));
res += mat4(-0.231296151876450,0.013777011074126,0.016535663977265,-0.030894707888365,-0.024750787764788,-0.045386686921120,-0.009017845615745,0.051875885576010,0.117050290107727,-0.022771243005991,-0.076549239456654,0.073036856949329,0.080704122781754,-0.017765352502465,-0.008189002051950,0.090396136045456) * FEATURE5_texOff(vec2(1,0));
res += mat4(0.054567512124777,0.052710950374603,-0.037698853760958,0.168389245867729,0.003573755500838,-0.033590607345104,0.044470574706793,-0.277394771575928,-0.054095875471830,0.038319129496813,-0.026513613760471,-0.149919092655182,0.001144046545960,0.066292263567448,-0.031376704573631,-0.035764388740063) * FEATURE5_texOff(vec2(1,1));
res += mat4(-0.048387933522463,0.151928558945656,0.066404536366463,0.025026502087712,-0.029759788885713,0.147760421037674,-0.045402206480503,0.152388587594032,-0.088819682598114,0.169889420270920,-0.006870491895825,0.113391973078251,0.074188701808453,-0.020020551979542,-0.006605934351683,-0.150012835860252) * FEATURE6_texOff(vec2(-1,-1));
res += mat4(0.049353219568729,-0.035339962691069,0.008592262864113,-0.021334594115615,0.058577708899975,-0.098516479134560,0.028643701225519,0.042931959033012,0.052351854741573,-0.258614003658295,-0.132547304034233,-0.043381202965975,-0.028826288878918,0.104406289756298,-0.047367122024298,-0.031443033367395) * FEATURE6_texOff(vec2(-1,0));
res += mat4(0.012209708802402,0.110076159238815,0.006771523039788,-0.006321788765490,0.052828483283520,-0.022971067577600,0.007940700277686,-0.136790424585342,0.005320069380105,0.019275087863207,0.043437488377094,-0.026210172101855,0.063890390098095,0.044501304626465,-0.047336947172880,-0.040874805301428) * FEATURE6_texOff(vec2(-1,1));
res += mat4(0.030603501945734,0.031007818877697,-0.030494151636958,-0.077841997146606,-0.025135995820165,0.011890917085111,-0.161009654402733,-0.090412124991417,-0.206363797187805,0.021288124844432,-0.333644449710846,-0.056262843310833,0.007051493506879,0.002554208040237,0.003239950397983,0.054556299000978) * FEATURE6_texOff(vec2(0,-1));
res += mat4(0.033906176686287,-0.119618847966194,-0.028207408264279,-0.017457369714975,0.065973527729511,-0.010862596333027,0.000763012212701,0.002327644731849,0.129416033625603,0.221863612532616,0.083712302148342,0.229882881045341,0.032139785587788,0.005301529075950,-0.037235159426928,0.051696725189686) * FEATURE6_texOff(vec2(0,0));
res += mat4(0.034232210367918,0.008108838461339,0.023962622508407,0.002881247550249,0.018059868365526,-0.056208591908216,0.044442281126976,-0.158883854746819,0.000866054557264,0.003827706445009,-0.016294170171022,-0.138147920370102,0.002638383535668,-0.001173063414171,0.030905192717910,0.008037017658353) * FEATURE6_texOff(vec2(0,1));
res += mat4(-0.049137905240059,0.019266441464424,0.038266442716122,0.105182990431786,-0.047530189156532,0.002410537796095,-0.050933416932821,-0.056613452732563,-0.181416884064674,-0.077312313020229,-0.088105477392673,-0.116366118192673,0.012870148755610,-0.033061079680920,0.057885605841875,0.042176172137260) * FEATURE6_texOff(vec2(1,-1));
res += mat4(0.114793673157692,-0.088824510574341,-0.073698662221432,0.127737179398537,0.101708099246025,-0.004035056103021,0.056598208844662,0.084645941853523,-0.117024019360542,0.093577325344086,0.123550571501255,-0.102088294923306,-0.045112490653992,0.011060163378716,-0.015270580537617,-0.049540370702744) * FEATURE6_texOff(vec2(1,0));
res += mat4(0.104602143168449,0.019445361569524,0.029463253915310,-0.074222445487976,0.036097694188356,-0.070236749947071,0.076677747070789,-0.019794551655650,-0.019607424736023,0.004117973614484,0.092694789171219,0.115508012473583,0.067130334675312,-0.003884581150487,0.037018187344074,0.091714039444923) * FEATURE6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.014195170253515,0.068303473293781,-0.121573753654957,0.840547919273376) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_4x_Photo] mapping 2_1

vec4 hook()
{
vec4 res = vec4(-0.019056051969528,-0.080184020102024,-0.022632168605924,-0.065932422876358);
res += mat4(0.130102485418320,-0.113520704209805,0.130166679620743,0.056802399456501,0.072786696255207,-0.070258453488350,-0.067362956702709,0.013505691662431,0.037521611899137,0.062909267842770,0.014770305715501,0.102144844830036,0.001920311478898,-0.020684238523245,-0.058740001171827,0.066936887800694) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.069991141557693,-0.138502627611160,-0.073708675801754,-0.005174960941076,0.097850620746613,0.053190667182207,-0.006353345699608,-0.025679206475616,0.045086741447449,0.059150572866201,-0.144347578287125,-0.066104963421822,0.234617859125137,-0.029515981674194,0.120553709566593,-0.041800521314144) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.008816651068628,-0.155241966247559,0.009069764055312,-0.000251107179793,-0.143239721655846,0.036475606262684,0.039090208709240,-0.027542477473617,-0.315203517675400,0.062174033373594,-0.027345262467861,0.012354435399175,0.024978900328279,-0.098296023905277,0.010305443778634,-0.025394396856427) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.014377996325493,0.010968711227179,0.161473467946053,-0.019319931045175,-0.008892664685845,-0.011811636388302,-0.013798492029309,-0.065897583961487,0.140539512038231,-0.134055942296982,0.085230566561222,-0.093647927045822,0.300308704376221,0.009784881956875,0.062971003353596,0.094256468117237) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.190192937850952,0.039346072822809,0.111446872353554,-0.060707781463861,-0.007793268188834,-0.033879008144140,-0.071786545217037,0.034032747149467,-0.224953114986420,-0.302688837051392,-0.059967707842588,-0.161864459514618,0.120587252080441,0.118504337966442,0.019789190962911,-0.079129830002785) * MODEL1_texOff(vec2(0,0));
res += mat4(0.096836492419243,-0.003389793680981,-0.008233169093728,0.113701544702053,-0.071715883910656,0.064538352191448,0.061321314424276,-0.005610335152596,-0.105079784989357,-0.211207479238510,-0.174918398261070,0.066698260605335,-0.151074200868607,0.079311333596706,-0.002761092269793,-0.096302263438702) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.115813352167606,-0.045676965266466,0.030036823824048,-0.115018717944622,-0.123639851808548,-0.100187197327614,-0.170822054147720,0.013921724632382,-0.017438717186451,-0.153572574257851,-0.044036187231541,-0.047888241708279,-0.192258447408676,0.028469188138843,-0.110887505114079,0.058615628629923) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.056904867291451,0.031761333346367,-0.011331680230796,0.012815920636058,-0.039727047085762,-0.168826550245285,0.004211063962430,0.247189611196518,0.075211793184280,-0.077492684125900,0.187640890479088,0.116070970892906,-0.204257488250732,0.045516531914473,0.009746209718287,-0.027528744190931) * MODEL1_texOff(vec2(1,0));
res += mat4(0.083168663084507,0.024713927879930,-0.053903080523014,-0.006109987851232,0.075838923454285,-0.029333278536797,-0.101062506437302,0.188040524721146,0.028061302378774,-0.278886139392853,-0.171826839447021,0.047091666609049,-0.074390970170498,0.117153547704220,-0.092802010476589,0.143753349781036) * MODEL1_texOff(vec2(1,1));
res += mat4(0.052669025957584,-0.017775438725948,-0.005129054654390,-0.078189045190811,0.099770687520504,0.001207073568366,-0.023890456184745,-0.028353096917272,0.120216496288776,0.002173213521019,0.003786099376157,-0.016198476776481,-0.088156312704086,-0.026435799896717,-0.050445772707462,0.011163660325110) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.202999308705330,0.123838916420937,-0.120199389755726,-0.032050471752882,0.002376997610554,-0.070788383483887,0.211906716227531,0.111803874373436,-0.066114068031311,-0.050375375896692,-0.179336786270142,-0.072995409369469,-0.085832685232162,0.021230457350612,0.237389966845512,0.085069067776203) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.054514613002539,-0.023639703169465,0.160861536860466,-0.002136896131560,0.002620099112391,0.046292372047901,-0.079362779855728,-0.065508566796780,-0.009020977653563,-0.107460163533688,-0.043931514024734,-0.098305307328701,0.112976618111134,0.032972786575556,0.067927479743958,-0.039204962551594) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.129518955945969,0.068954832851887,0.143477022647858,0.067619122564793,0.049909934401512,-0.173189476132393,-0.123489834368229,0.142722994089127,-0.004955441225320,-0.070098638534546,0.228479102253914,0.003662168979645,-0.010858359746635,0.118678428232670,-0.079130396246910,-0.047476705163717) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.123212300240993,-0.080077283084393,-0.189882114529610,0.173921883106232,-0.119115047156811,0.193032920360565,0.066189922392368,0.121624253690243,-0.269813805818558,-0.026705002412200,-0.146032810211182,-0.044211022555828,0.126728549599648,0.154153406620026,-0.140224426984787,0.059434700757265) * MODEL2_texOff(vec2(0,0));
res += mat4(0.026480991393328,-0.007174729369581,-0.062660090625286,-0.084349468350410,-0.006012566387653,0.023605933412910,-0.012195562012494,0.121068201959133,-0.020699813961983,0.048609592020512,-0.038189876824617,0.075489014387131,0.150598034262657,0.018039580434561,0.105954743921757,0.129554525017738) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.028746334835887,0.024630844593048,-0.074389748275280,0.116788856685162,0.016865430399776,0.056198958307505,-0.064543254673481,-0.012573013082147,-0.003886319231242,-0.068743988871574,0.136118441820145,0.004919206257910,-0.098243460059166,-0.095859885215759,0.037702579051256,-0.048128973692656) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.044246416538954,0.029667144641280,0.195240318775177,-0.072532355785370,-0.032122399657965,-0.145879387855530,0.060551591217518,0.090696141123772,-0.061652231961489,-0.081077814102173,0.165153101086617,0.153384685516357,-0.007223417982459,-0.019277054816484,-0.194285795092583,0.025953318923712) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.059654492884874,0.084122680127621,-0.066960729658604,-0.125137731432915,0.071524962782860,-0.018937421962619,0.053944967687130,0.070441119372845,-0.026558658108115,-0.051515065133572,-0.070285521447659,-0.007582629565150,0.005648381076753,-0.158030226826668,-0.039642743766308,-0.089186266064644) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.060541909188032,-0.020975362509489,0.072254590690136,0.017757304012775,-0.005853480193764,0.009903606027365,0.034426692873240,-0.013322907499969,0.103713840246201,-0.041336700320244,-0.048788983374834,-0.159683331847191,-0.296998471021652,0.075956918299198,0.050066795200109,0.046314328908920) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.086360536515713,-0.001483406638727,0.190606191754341,-0.081935144960880,0.012424990534782,-0.015307525172830,-0.001314339111559,-0.035157825797796,-0.126011461019516,0.037221264094114,0.034636851400137,-0.100700445473194,-0.182485431432724,0.057178828865290,-0.101171597838402,0.090291790664196) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.072108700871468,-0.160061627626419,-0.147375240921974,0.023708211258054,-0.002736269962043,-0.016074270009995,0.005386851262301,-0.045239455997944,-0.088118024170399,0.070736721158028,-0.050514131784439,0.122514389455318,0.344918489456177,0.066426336765289,-0.021659037098289,0.071614727377892) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.093564473092556,0.058535736054182,-0.020931499078870,-0.065623424947262,0.007255298085511,0.030672453343868,0.062576413154602,-0.015032351948321,0.037594892084599,-0.010283235460520,-0.095655478537083,-0.003412757534534,-0.186202228069305,-0.109953396022320,0.134069815278053,0.177096098661423) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.020789396017790,0.001069049234502,0.042372591793537,-0.154153913259506,0.004594405181706,0.001629526494071,-0.034393902868032,-0.005213238298893,-0.042280800640583,0.060007460415363,0.102495715022087,-0.144601821899414,0.276553094387054,-0.321635127067566,-0.017232960090041,0.283506989479065) * MODEL3_texOff(vec2(0,0));
res += mat4(0.059682633727789,0.069528609514236,0.195758521556854,-0.063252985477448,0.000033018779504,-0.007609948981553,0.000431865017163,-0.037012699991465,0.046334512531757,-0.166168332099915,0.171615198254585,0.194264397025108,0.044717509299517,-0.164699420332909,-0.137053593993187,-0.199183180928230) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.015659483149648,-0.145955547690392,-0.145237982273102,-0.061352401971817,0.013445356860757,0.016392089426517,0.052524726837873,-0.005641988478601,-0.144650459289551,-0.152497768402100,-0.018075661733747,0.043846148997545,0.250438570976257,0.054675947874784,-0.067165121436119,0.065928399562836) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.024204123765230,-0.116719506680965,-0.055326934903860,0.124666742980480,0.006309083197266,-0.026875579729676,-0.030432952567935,0.012663397938013,0.063189037144184,-0.151571571826935,-0.169232845306396,0.124601222574711,0.075553573668003,0.046645440161228,0.315791547298431,-0.145654112100601) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.010831350460649,-0.037343434989452,0.081391200423241,-0.009400586597621,0.039167217910290,-0.038528420031071,0.009205659851432,-0.043773442506790,0.125695630908012,-0.104083053767681,0.116745531558990,0.240609899163246,-0.327261358499527,0.180447190999985,-0.182535544037819,-0.396551817655563) * MODEL3_texOff(vec2(1,1));
res += mat4(0.046072240918875,0.003222019644454,0.100975915789604,0.005493704229593,0.062110561877489,-0.089042499661446,-0.013933484442532,-0.116917759180069,0.049915939569473,0.016886195167899,-0.017512653023005,0.084593452513218,-0.048596870154142,-0.075974069535732,-0.128929138183594,0.016705457121134) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.027284499257803,0.047897752374411,0.049918290227652,-0.039486419409513,-0.012538565322757,-0.077940255403519,-0.063864983618259,-0.010266184806824,-0.091956287622452,0.006174128036946,-0.042648334056139,0.005921344272792,0.025978766381741,0.099530823528767,-0.169443085789680,-0.047029159963131) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.009135342203081,0.057064753025770,-0.024645190685987,-0.015570019371808,0.028078654780984,-0.020644683390856,-0.104211494326591,0.189525008201599,0.074294418096542,-0.021881505846977,0.124909184873104,0.019194757565856,-0.096610561013222,-0.036272421479225,0.137796148657799,0.007395661901683) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.039516899734735,-0.078177578747272,0.001034450018778,-0.002782025607303,0.064151525497437,-0.000765016884543,0.065352410078049,-0.022316575050354,0.070162385702133,0.148066475987434,0.005623060278594,-0.156020015478134,-0.012801854871213,-0.015815434977412,0.115348786115646,-0.063317842781544) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.016407728195190,-0.023468468338251,0.049576919525862,-0.016002735123038,-0.007732829544693,0.031768519431353,0.020930781960487,-0.034946285188198,-0.090005896985531,0.059671115130186,-0.044769540429115,0.039640232920647,-0.001863856799901,-0.008380913175642,0.021565757691860,-0.173765793442726) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.022606359794736,0.044394921511412,-0.055787410587072,0.100517362356186,-0.069064073264599,-0.087251931428909,0.087540723383427,-0.042720753699541,0.006592093035579,0.183420583605766,0.074227362871170,-0.110819518566132,0.073162719607353,-0.043188583105803,0.225754648447037,0.030730763450265) * MODEL4_texOff(vec2(0,1));
res += mat4(0.059560772031546,-0.090827241539955,0.125070482492447,-0.115595340728760,0.027129424735904,-0.021170008927584,-0.060533899813890,-0.054596163332462,0.004354684613645,0.030628589913249,-0.004150250926614,-0.003514163428918,-0.072061806917191,0.065298058092594,0.026304693892598,0.042765974998474) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.016973974183202,-0.144489347934723,-0.046384815126657,-0.057336557656527,-0.158822610974312,0.019846519455314,-0.076898068189621,-0.047390040010214,0.012655901722610,0.006814488675445,0.008089208044112,0.105576992034912,-0.058440420776606,0.050509385764599,0.042614173144102,-0.021439552307129) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.047546740621328,-0.113635696470737,-0.119496211409569,-0.082888677716255,0.240786433219910,-0.027050182223320,0.113687150180340,0.212638884782791,-0.011635177768767,0.027089186012745,-0.018382711336017,-0.030273851007223,-0.006091475021094,0.023289471864700,-0.062650799751282,-0.018534103408456) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.100714392960072,0.049415241926908,0.026882437989116,-0.030494051054120,-0.207204535603523,0.064059160649776,-0.058814607560635,-0.116608232259750,-0.015909902751446,0.056991774588823,-0.017920983955264,-0.047183442860842,0.006468974519521,-0.001649825135246,0.000769280421082,-0.005133291240782) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.207286432385445,0.146370172500610,-0.002327267779037,-0.127864122390747,0.019835097715259,0.078043855726719,-0.077653735876083,0.056573506444693,-0.008500155061483,-0.022365560755134,-0.003638844704255,-0.019499653950334,-0.013223735615611,0.005897846538574,-0.000828056829050,0.014309785328805) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.000489451456815,0.026818741112947,-0.030464611947536,-0.031289439648390,0.044952679425478,0.071476720273495,-0.053785968571901,-0.019186476245522,0.075798898935318,-0.006195612251759,0.045442521572113,0.040283694863319,0.002559740561992,0.005797996185720,-0.004001418594271,0.007453281898052) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.087006203830242,0.002937290584669,-0.037612564861774,0.020418131724000,0.102061927318573,0.041520323604345,0.133163660764694,-0.151408851146698,-0.035376720130444,0.030664293095469,-0.081106960773468,0.043877415359020,0.006639336701483,-0.002443831646815,-0.001023219316266,-0.000943226972595) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.002161163371056,-0.003313300199807,-0.083624571561813,-0.111581370234489,-0.011050156317651,0.040327377617359,-0.127522855997086,-0.073279052972794,-0.147869437932968,-0.029320247471333,0.111132435500622,0.120894365012646,-0.010323008522391,0.003114339197055,-0.001627101213671,0.014290832914412) * MODEL5_texOff(vec2(0,0));
res += mat4(0.041873745620251,0.062684081494808,-0.011767394840717,-0.032954301685095,-0.112691126763821,0.043194998055696,-0.079995021224022,-0.011281964369118,0.071395352482796,0.050034523010254,-0.165205955505371,-0.028293680399656,-0.000392025394831,0.002843441441655,-0.006585919763893,0.010574283078313) * MODEL5_texOff(vec2(0,1));
res += mat4(0.047114387154579,0.019084488973022,0.018677048385143,-0.009274284355342,-0.150509804487228,-0.028479740023613,0.119671769440174,-0.057134009897709,-0.052946358919144,-0.031324665993452,-0.018531093373895,0.051988493651152,0.010104862973094,0.002041538245976,-0.001617110101506,0.004602973349392) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.011152381077409,-0.052609745413065,-0.053469914942980,-0.058378070592880,0.034172426909208,0.141964897513390,0.133859217166901,-0.096540093421936,-0.007364992052317,-0.047740973532200,-0.042028378695250,0.084794901311398,-0.005035247188061,0.000668442924507,0.002461017575115,0.008839201182127) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.086509622633457,0.024801436811686,-0.137101903557777,-0.042422786355019,-0.100362442433834,0.040750499814749,-0.077379517257214,0.004796991124749,0.004244131501764,-0.040947079658508,-0.030099363997579,-0.022839700803161,-0.003128092503175,0.001117163337767,-0.001032731961459,0.009215558879077) * MODEL5_texOff(vec2(1,1));
res += mat4(0.015590558759868,-0.106463968753815,-0.059779793024063,0.048853941261768,-0.029041599482298,-0.010214673355222,0.029105763882399,-0.010049306787550,-0.012456045486033,-0.015889337286353,0.006760409567505,0.104691654443741,-0.181530952453613,0.017874132841825,0.024526014924049,0.044491380453110) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.083451725542545,0.005259353667498,-0.002837508218363,-0.156813591718674,-0.053664542734623,0.037608586251736,-0.019297990947962,0.053341701626778,0.219715222716331,-0.013177172280848,-0.148136660456657,0.059394344687462,0.032111041247845,-0.062823921442032,0.236389160156250,0.007481482345611) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.107706680893898,0.055726755410433,0.004890251439065,0.045789863914251,0.059706743806601,0.067728623747826,-0.031967878341675,-0.053110610693693,-0.019129130989313,0.161623701453209,0.007023700047284,-0.229702904820442,0.101495385169983,0.025118969380856,-0.018395433202386,0.044678766280413) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.032156232744455,0.020628651604056,-0.075750976800919,-0.058670412749052,-0.002659324789420,-0.024499999359250,-0.062373179942369,-0.147373706102371,0.051102131605148,0.047377213835716,-0.046622760593891,0.105350948870182,-0.060577556490898,-0.133953839540482,-0.357165366411209,0.134350299835205) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.162925615906715,-0.100220516324043,0.106196768581867,-0.098388195037842,0.109478376805782,-0.061424374580383,0.103561080992222,-0.113125696778297,0.159546926617622,0.003829100402072,-0.005891733802855,-0.137394189834595,0.061348710209131,0.233109205961227,0.008402778767049,0.048657659441233) * MODEL6_texOff(vec2(0,0));
res += mat4(0.074890635907650,-0.104723937809467,0.069967314600945,-0.096103250980377,-0.058141678571701,-0.114688955247402,0.086306892335415,0.007219019811600,0.006225209683180,0.061026129871607,-0.370842278003693,-0.229227557778358,0.056051511317492,-0.000734145054594,0.245015487074852,-0.143076568841934) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.100061610341072,-0.098760351538658,-0.016330361366272,-0.075985178351402,-0.302337825298309,-0.055473562330008,-0.108554646372795,0.006306919734925,-0.046424865722656,-0.054031226783991,0.007182525470853,-0.081639967858791,0.130540236830711,0.098034180700779,-0.188551411032677,0.031259726732969) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.134676083922386,-0.056379511952400,-0.044179491698742,0.033238369971514,0.054090458899736,-0.052659776061773,0.013205749914050,0.196728795766830,0.007682776078582,-0.139167562127113,-0.079524308443069,-0.065100669860840,0.098432727158070,-0.107448391616344,-0.182110413908958,-0.218722671270370) * MODEL6_texOff(vec2(1,0));
res += mat4(0.074221178889275,-0.024593744426966,-0.012289850972593,0.105980277061462,0.021597053855658,-0.013312637805939,-0.222009852528572,0.016956826671958,-0.073804505169392,-0.037891589105129,-0.064852826297283,0.034949224442244,-0.096802487969398,-0.061025545001030,0.148530840873718,-0.051053579896688) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.301351428031921,-0.022762965410948,-0.172558546066284,-0.180545270442963) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_4x_Photo] mapping 2_2

vec4 hook()
{
vec4 res = vec4(0.014211352914572,-0.000851358345244,-0.078366793692112,-0.003983030561358);
res += mat4(0.020748080685735,-0.020200772210956,-0.026756456121802,-0.120809942483902,0.025798821821809,0.074900642037392,-0.096263676881790,0.040579997003078,-0.072791531682014,0.021041631698608,0.038668893277645,-0.030532745644450,0.025458855554461,-0.039031360298395,-0.009397477842867,-0.046486295759678) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.095082409679890,-0.101738348603249,0.012472394853830,-0.110769622027874,0.014338661916554,-0.094815790653229,0.062000948935747,0.043364360928535,0.005500917322934,0.128271579742432,0.170999944210052,-0.032380711287260,-0.054442048072815,0.134074434638023,-0.041505485773087,-0.102962963283062) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.046940226107836,-0.136253312230110,-0.025325380265713,0.001343162730336,0.065954655408859,0.067420937120914,0.006349532399327,-0.028315134346485,-0.048305906355381,-0.175791978836060,-0.029274487867951,-0.097762033343315,-0.068185418844223,0.019102063030005,-0.048627208918333,-0.077174365520477) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.196550965309143,0.007426646072417,-0.089425079524517,0.055865898728371,0.025465030223131,0.071667268872261,-0.094199955463409,-0.076280884444714,0.028313014656305,-0.006504024844617,0.079959712922573,-0.108749568462372,-0.105173528194427,-0.046241223812103,0.072646476328373,-0.038375660777092) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.082569345831871,-0.052357401698828,-0.027118632569909,-0.001037139678374,0.082122944295406,-0.064235270023346,0.099830597639084,0.075181655585766,-0.030833922326565,0.045903369784355,-0.041912101209164,-0.082982696592808,0.143981710076332,0.189014434814453,0.142607361078262,0.027490036562085) * MODEL1_texOff(vec2(0,0));
res += mat4(0.074274614453316,-0.074626125395298,0.024207523092628,-0.011941467411816,0.011260072700679,-0.290456891059875,0.033295415341854,-0.032966852188110,-0.143656358122826,0.026526752859354,0.049804672598839,-0.257289022207260,0.158605515956879,0.124937653541565,-0.040199238806963,-0.048593778163195) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.051734950393438,-0.007134938146919,-0.062738597393036,-0.045571390539408,-0.018914060667157,0.099311798810959,-0.112427033483982,0.094861447811127,-0.007805703207850,0.039881389588118,0.140748724341393,-0.107504896819592,0.092731513082981,-0.147002220153809,0.041188765317202,-0.138764128088951) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.003542899619788,-0.102770902216434,-0.011694547720253,0.030079664662480,-0.363193303346634,-0.014551705680788,0.000751492509153,-0.247202351689339,-0.101397909224033,0.010290890932083,-0.056815955787897,-0.034958470612764,-0.000490070960950,-0.013559499755502,-0.087076127529144,0.067755103111267) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.022734466940165,-0.009982286021113,0.035485047847033,0.012830620631576,-0.232517898082733,-0.157853201031685,-0.009220626205206,-0.073763437569141,-0.015880769118667,-0.119924850761890,0.052917372435331,-0.025161417201161,0.007509583141655,0.082102224230766,0.045192059129477,0.017284516245127) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.012611084617674,-0.049180690199137,-0.071556352078915,-0.042947318404913,0.056774023920298,-0.106256581842899,-0.053389377892017,0.031347770243883,-0.037916306406260,-0.008787476457655,-0.025200143456459,-0.066674225032330,-0.048286650329828,-0.023965561762452,0.013078670017421,-0.026145195588470) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.020187266170979,-0.086237043142319,-0.144062519073486,-0.069836877286434,0.180741354823112,0.154066622257233,-0.024776641279459,0.115461133420467,0.000540279317647,0.038129627704620,0.048130877315998,-0.036093026399612,-0.007650441024452,-0.008744503371418,-0.047569673508406,0.097628310322762) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.013438042253256,0.152847692370415,-0.012488164938986,-0.060936924070120,0.174802005290985,0.095146268606186,-0.082498952746391,0.103083066642284,-0.003151402808726,-0.024424696341157,0.067927554249763,0.033856533467770,0.011787906289101,0.095222368836403,-0.004502500873059,-0.073035016655922) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.037539485841990,0.097649030387402,0.006864655762911,0.019468111917377,-0.394650459289551,0.031133662909269,-0.107266686856747,-0.134486243128777,0.099115967750549,0.012304509058595,-0.003254994750023,-0.101852782070637,0.029559362679720,0.061556793749332,0.071552015841007,0.046089988201857) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.204664766788483,0.011951192282140,0.116519808769226,-0.045039474964142,-0.138367861509323,0.018495673313737,0.004386749584228,-0.011254319921136,0.022199589759111,0.143468156456947,0.027215465903282,-0.010339024476707,-0.095037914812565,-0.043458718806505,-0.019277147948742,-0.029254097491503) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.053290762007236,-0.073735125362873,0.151214390993118,-0.092215664684772,-0.125737130641937,-0.067282661795616,-0.074188269674778,0.002090181922540,0.004595412872732,-0.059012085199356,-0.083247944712639,-0.003208968089893,0.047597423195839,0.060277197510004,-0.022612646222115,-0.063441812992096) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.029072804376483,-0.048862170428038,-0.233494609594345,0.247952878475189,-0.005109084304422,0.057084705680609,-0.005997401662171,-0.073721773922443,0.033038068562746,0.086908392608166,0.057070691138506,-0.070597946643829,-0.020385943353176,-0.002030828502029,0.040474895387888,-0.022499833256006) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.153458550572395,0.106921896338463,0.291307032108307,-0.074602164328098,-0.138706311583519,-0.252290219068527,-0.085200905799866,0.088895864784718,0.011607252992690,0.032081834971905,-0.029380297288299,-0.023663649335504,-0.039186269044876,-0.072877049446106,-0.055190462619066,0.179507970809937) * MODEL2_texOff(vec2(1,0));
res += mat4(0.016064766794443,0.018744895234704,-0.045638650655746,-0.038383703678846,-0.062057301402092,0.035360954701900,0.023830551654100,-0.016541611403227,-0.016527067869902,-0.118619941174984,-0.124623373150826,-0.005325348582119,0.049790624529123,-0.139559462666512,0.037306763231754,0.056364439427853) * MODEL2_texOff(vec2(1,1));
res += mat4(0.013100565411150,0.018827872350812,-0.056648008525372,-0.191885843873024,0.013324754312634,-0.026668645441532,-0.024659974500537,-0.049361757934093,-0.017264734953642,0.064730659127235,0.066293954849243,-0.104834213852882,-0.011260104365647,-0.138454794883728,0.048392347991467,-0.028303746134043) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.030052963644266,-0.015462675131857,-0.044047608971596,-0.048431321978569,-0.006639067549258,0.002220016904175,0.004273608792573,-0.014681934379041,-0.030199464410543,-0.112709835171700,0.036414090543985,-0.033656213432550,-0.165606170892715,-0.074909962713718,-0.023547524586320,0.022180657833815) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.017280340194702,-0.115757770836353,-0.100896649062634,-0.049398873001337,-0.044918764382601,0.006846208125353,-0.005523310042918,0.016184682026505,0.002863298635930,-0.293813198804855,-0.027466719970107,-0.095136649906635,-0.129917740821838,0.179098665714264,-0.029236741364002,-0.090387664735317) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.096589028835297,-0.077748574316502,0.097106762230396,0.064890526235104,0.010954374447465,-0.016693690791726,-0.029588479548693,-0.067633241415024,-0.027729149907827,0.079088710248470,0.033426210284233,-0.009151178412139,-0.109363950788975,-0.020823357626796,-0.132326647639275,-0.015075800009072) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.206307649612427,-0.058013435453176,0.013206054456532,-0.268570333719254,-0.008988545276225,-0.004409717395902,0.001868920749985,-0.017019612714648,0.028786841779947,-0.102989889681339,-0.017141135409474,-0.141121238470078,-0.382976204156876,0.037389434874058,0.062142219394445,-0.057093299925327) * MODEL3_texOff(vec2(0,0));
res += mat4(0.042123883962631,0.050276223570108,-0.051530331373215,-0.160416468977928,-0.058995533734560,0.026825126260519,0.013927931897342,0.013747305609286,-0.024656852707267,-0.194161921739578,0.062739312648773,-0.055959112942219,-0.026147482916713,0.011517603881657,0.007581727113575,-0.136195719242096) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.010197416879237,-0.064684212207794,0.078109979629517,-0.133532434701920,0.008292811922729,-0.010137358680367,-0.026821628212929,-0.045403014868498,0.077082619071007,0.076482400298119,0.149961397051811,-0.179544702172279,0.065029762685299,-0.092098981142044,-0.106354370713234,0.555097758769989) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.102359145879745,0.101751148700714,0.072312250733376,0.040537364780903,-0.026285603642464,-0.002786367898807,0.020347792655230,-0.007261789403856,-0.141357451677322,-0.022842733189464,-0.147560566663742,0.099649362266064,0.525252163410187,0.111417807638645,0.271500110626221,-0.190517455339432) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.017755007371306,0.009032182395458,-0.002834550570697,-0.006336739752442,-0.026772156357765,0.034177824854851,0.017534745857120,0.000335412420100,-0.021119633689523,-0.188425451517105,-0.087773077189922,-0.000768620404415,0.182920321822166,-0.009080830030143,0.042419638484716,-0.055118925869465) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.004909525159746,0.056148562580347,-0.019703608006239,0.024383667856455,0.080287799239159,-0.110296338796616,0.040883731096983,0.013946929015219,0.010449160821736,-0.066497810184956,0.012463145889342,-0.077114559710026,0.052333232015371,0.141664698719978,-0.094562776386738,-0.033338010311127) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.041441436856985,0.038066990673542,0.021709887310863,0.032013051211834,0.056532811373472,-0.054727982729673,0.146270275115967,-0.000262640096480,-0.059927020221949,-0.023793857544661,0.065304853022099,-0.026464799419045,0.008789592422545,0.120854921638966,0.014934571459889,0.006916155572981) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.028082650154829,0.006245966535062,0.029563045129180,0.002710046712309,0.054671153426170,-0.054119423031807,0.016775345429778,-0.035252559930086,-0.001786440727301,0.002116274321452,0.004361805040389,-0.005548720713705,0.001486407709308,-0.042341906577349,-0.010106695815921,0.046826917678118) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.001428201445378,0.008777088485658,-0.042775753885508,0.010399717837572,0.142557471990585,-0.053647615015507,-0.113817557692528,0.062475729733706,-0.093167789280415,-0.016069345176220,0.239183261990547,0.026408908888698,-0.190879300236702,-0.050423555076122,-0.024445109069347,-0.081182278692722) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.019629875198007,-0.053291048854589,-0.048588301986456,-0.026047507300973,0.052116658538580,-0.059877380728722,0.016017705202103,-0.102911524474621,0.085379406809807,0.000425416190410,0.018189432099462,0.049346547573805,-0.036572188138962,-0.050129085779190,0.095639437437057,-0.149129018187523) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.023774372413754,-0.020436709746718,0.054291453212500,-0.045924700796604,-0.072266541421413,-0.077892765402794,-0.029374759644270,0.091376103460789,0.070652827620506,-0.041565887629986,0.143283501267433,0.046079259365797,-0.022305762395263,-0.109292969107628,0.027479508891702,0.011726641096175) * MODEL4_texOff(vec2(0,1));
res += mat4(0.026474812999368,0.026970848441124,-0.025260385125875,0.027263382449746,-0.038175102323294,-0.002872110344470,-0.000705403916072,-0.028624648228288,0.006804400123656,0.035522960126400,-0.071523480117321,0.060369580984116,0.069774106144905,0.016789060086012,0.017343716695905,-0.174177318811417) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.099810950458050,0.008718705736101,0.052310034632683,0.000241190486122,-0.026382859796286,-0.095943175256252,-0.109937183558941,0.014521056786180,-0.008075466379523,-0.021791093051434,0.084506362676620,0.034369353204966,-0.045003987848759,-0.202886939048767,0.005896843504161,-0.099008597433567) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.035671956837177,-0.001418657018803,-0.064390435814857,0.007992967031896,0.024972828105092,-0.010310080833733,-0.061431325972080,0.029870018362999,0.001925831078552,0.032719459384680,-0.012431016191840,-0.054703354835510,0.010647605173290,0.055233746767044,0.014937071129680,0.007781782653183) * MODEL4_texOff(vec2(1,1));
res += mat4(0.054959498345852,0.027967087924480,-0.003989859949797,0.073276028037071,0.073458284139633,0.040114525705576,-0.013545545749366,-0.080768212676048,-0.008403699845076,0.028178740292788,0.027602354064584,-0.036984674632549,0.010450303554535,0.000598044658545,-0.003478671656922,-0.013116694986820) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.130757272243500,0.101256638765335,0.115190692245960,-0.134902462363243,-0.018764870241284,0.113550879061222,0.023655649274588,-0.034224383533001,0.073947288095951,-0.069587305188179,0.029249792918563,0.011305845342577,-0.016204370185733,-0.006617081817240,0.001832852140069,-0.013358700089157) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.048090908676386,0.025779565796256,-0.034535523504019,0.007643854245543,-0.012053542770445,0.121633902192116,-0.075144983828068,-0.039326403290033,0.040774110704660,0.078519910573959,-0.037560697644949,0.004669582005590,-0.009047526866198,0.001891867024824,-0.010839369148016,0.006274957209826) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.049914993345737,-0.033459506928921,0.120463646948338,-0.061074748635292,-0.021401770412922,0.010678113438189,0.052431985735893,-0.059238024055958,-0.029814332723618,-0.042991425842047,-0.094172343611717,0.036489952355623,0.007920610718429,0.008759414777160,-0.004000013694167,-0.014154378324747) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.041119974106550,0.069731339812279,0.099858753383160,-0.204540923237801,-0.038441006094217,-0.002255881903693,0.067220665514469,0.142297446727753,-0.122416988015175,-0.030445551499724,-0.063080728054047,-0.125641182065010,-0.015430483035743,-0.009298419579864,0.004566096700728,-0.014960083179176) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.154249519109726,0.007580372504890,-0.004894470795989,-0.037662222981453,0.046191200613976,-0.086886122822762,-0.048023913055658,0.070599116384983,-0.024340871721506,-0.134067401289940,0.118711471557617,-0.042693577706814,-0.014661955647171,-0.002591725206003,-0.008478702977300,0.000589823001064) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.006404957734048,0.011120405979455,0.111410431563854,0.061046827584505,0.029584655538201,-0.025114800781012,0.021846586838365,-0.040867753326893,0.033359725028276,-0.015523558482528,-0.053124412894249,-0.043213862925768,0.006475648377091,0.020611293613911,-0.001222333870828,-0.010829377919436) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.007160295266658,0.185679361224174,0.166786193847656,-0.174186974763870,-0.017119085416198,-0.029809325933456,0.000837497820612,-0.078879430890083,0.065598070621490,0.015667969360948,-0.019801801070571,0.062899887561798,-0.013983802869916,-0.004238159395754,0.007343153003603,-0.015311595052481) * MODEL5_texOff(vec2(1,0));
res += mat4(0.042274858802557,0.113845810294151,0.003291515866295,-0.017929509282112,-0.030560921877623,-0.048694487661123,0.001441324711777,0.000285663001705,0.016236022114754,-0.104008629918098,0.048867106437683,-0.049187906086445,-0.003328631399199,-0.005545211490244,-0.001124970847741,0.000875107769389) * MODEL5_texOff(vec2(1,1));
res += mat4(0.039920281618834,0.005002134479582,-0.083676829934120,0.039804432541132,-0.004074224270880,0.010402137413621,-0.019385140389204,-0.072921521961689,0.005924643017352,-0.111937917768955,-0.146514102816582,0.087966419756413,-0.000874449789990,0.025243023410439,0.016345545649529,0.037253350019455) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.045784629881382,0.134414151310921,-0.034758623689413,0.070697173476219,0.063794709742069,0.101644746959209,0.086719885468483,0.056062471121550,-0.053731787949800,0.148158550262451,-0.097669266164303,-0.242710173130035,-0.035065308213234,0.223671853542328,0.068130515515804,-0.008656458929181) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.067311234772205,-0.039285074919462,0.039230372756720,0.063076250255108,-0.006477859336883,-0.124184139072895,-0.043676938861609,0.058728668838739,-0.018992576748133,-0.048542838543653,-0.141144543886185,-0.099762275815010,-0.011819668114185,-0.011537319049239,-0.035094913095236,0.000030933020753) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.044964767992496,0.087425202131271,-0.090342625975609,-0.016107134521008,0.063861019909382,-0.044781010597944,0.003391830949113,-0.005603371653706,-0.058013815432787,-0.036317914724350,-0.003445581765845,-0.036695204675198,0.026547331362963,-0.104205109179020,0.009837357327342,-0.024642977863550) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.146147057414055,0.093593500554562,-0.065874546766281,-0.005834943149239,0.057544428855181,0.142539054155350,0.021519513800740,-0.026438498869538,0.119698740541935,0.008695538155735,0.044973164796829,-0.289949327707291,0.336836427450180,0.288901537656784,0.052612919360399,0.047561202198267) * MODEL6_texOff(vec2(0,0));
res += mat4(0.117875143885612,-0.063105374574661,0.104677654802799,0.013807374052703,0.121021807193756,-0.002186965662986,-0.104209646582603,0.063534371554852,0.053999520838261,-0.139770403504372,-0.107154048979282,-0.097508780658245,-0.047091096639633,-0.085205301642418,0.036381300538778,0.012945509515703) * MODEL6_texOff(vec2(0,1));
res += mat4(0.030249597504735,0.132615834474564,-0.025902036577463,-0.266880273818970,-0.087298355996609,0.047113668173552,0.103057518601418,-0.072386980056763,-0.011511473916471,0.005297853145748,0.015255339443684,0.097787372767925,-0.018880724906921,-0.013752348721027,0.151090666651726,-0.231675609946251) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.102242328226566,-0.003130321390927,-0.026901951059699,0.014925894327462,0.047547321766615,-0.132592901587486,0.009704785421491,0.069143220782280,-0.080542802810669,-0.016588965430856,-0.182936564087868,0.200638368725777,-0.242479175329208,0.051697399467230,-0.211404427886009,0.094715699553490) * MODEL6_texOff(vec2(1,0));
res += mat4(0.018262019380927,-0.041351586580276,0.025611834600568,0.090094894170761,-0.114450000226498,0.095590129494667,0.087200179696083,0.010087109170854,-0.003068513004109,-0.107611715793610,0.034154199063778,0.050841063261032,0.070980891585350,-0.033009849488735,0.146050438284874,-0.005816650111228) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.451202809810638,-0.068786352872849,-0.051235780119896,-0.067873977124691) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_4x_Photo] mapping 2_3

vec4 hook()
{
vec4 res = vec4(0.084862358868122,0.035247702151537,0.062124263495207,-0.050380982458591);
res += mat4(-0.146736666560173,-0.083537958562374,-0.011332465335727,0.007631979417056,-0.014213237911463,-0.013513050042093,0.104139372706413,-0.215640157461166,0.153160989284515,0.020950326696038,-0.064680412411690,-0.004221637733281,-0.155699566006660,0.099102966487408,0.038014438003302,0.013619380071759) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.027736756950617,0.012082787230611,-0.038224272429943,0.021512439474463,-0.065894722938538,0.004463470540941,-0.027074083685875,-0.164590016007423,-0.047778047621250,-0.074325554072857,-0.067012429237366,-0.147514596581459,-0.080899216234684,0.051584132015705,0.158929660916328,0.029930315911770) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.022831777110696,0.056505616754293,0.041867844760418,-0.018812347203493,0.089632898569107,-0.023167286068201,0.099362365901470,-0.045070368796587,-0.025483801960945,-0.035199023783207,-0.085937805473804,0.012291783466935,-0.108851782977581,0.131652355194092,0.013795758597553,-0.045556999742985) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.097073405981064,-0.062359921634197,-0.119996696710587,-0.038729269057512,0.053776945918798,-0.062628701329231,-0.149558067321777,0.051985062658787,0.154329806566238,0.014226697385311,-0.127143710851669,-0.044240433722734,0.029757892712951,0.073924832046032,0.139356955885887,0.190069407224655) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.012561806477606,-0.055243354290724,-0.061501394957304,0.025896983221173,-0.029130877926946,-0.065622895956039,-0.094928272068501,0.076971434056759,-0.049477227032185,-0.198907524347305,-0.060925666242838,0.134528562426567,0.029404889792204,-0.041759323328733,0.039468180388212,0.164825335144997) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.033201314508915,-0.021078523248434,-0.040828481316566,0.014219785109162,-0.039156362414360,-0.002115464303643,0.027897996827960,0.073698416352272,-0.128909513354301,-0.101742096245289,-0.041367646306753,0.043775636702776,0.059117477387190,0.061904542148113,0.121835157275200,0.043032724410295) * MODEL1_texOff(vec2(0,1));
res += mat4(0.024536231532693,0.004772963467985,-0.001046402263455,-0.076798439025879,-0.104654215276241,-0.076740331947803,-0.007189139258116,-0.204687714576721,-0.092884674668312,0.019909353926778,-0.140857219696045,-0.076604671776295,-0.057661887258291,-0.038791581988335,-0.056087482720613,-0.009622906334698) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.000361705548130,0.000611264200415,-0.050820805132389,-0.064214996993542,-0.224984243512154,-0.047031659632921,0.101625844836235,-0.101901493966579,-0.048383269459009,0.127445697784424,-0.155932798981667,0.000243724949542,-0.084496393799782,0.001236132928170,0.071489475667477,-0.006547882221639) * MODEL1_texOff(vec2(1,0));
res += mat4(0.065551303327084,-0.066858194768429,-0.006899173837155,-0.060686975717545,-0.099198311567307,-0.141149550676346,-0.015821846202016,-0.070563904941082,-0.204978480935097,0.151790663599968,-0.040097311139107,0.001367747318000,-0.240750074386597,-0.062996879220009,0.051055945456028,-0.156022414565086) * MODEL1_texOff(vec2(1,1));
res += mat4(0.077077992260456,-0.026111889630556,0.035386972129345,-0.089192986488342,0.091954477131367,0.061500463634729,-0.045761507004499,-0.001224808162078,0.013403287157416,-0.031578406691551,-0.093634746968746,-0.119112007319927,-0.136136174201965,-0.002281596884131,-0.098742268979549,-0.096013993024826) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.185775056481361,-0.080219209194183,-0.004116376861930,-0.112683914601803,0.069109939038754,0.011881160549819,0.052133131772280,-0.143667370080948,0.275385588407516,-0.050373442471027,0.157939106225967,-0.049855411052704,-0.047288622707129,0.035595577210188,0.139135226607323,-0.093573585152626) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.095126457512379,-0.069224469363689,0.089267574250698,0.064731441438198,0.227061942219734,-0.045221079140902,-0.036873407661915,-0.072637207806110,-0.080688238143921,-0.012351525016129,0.072332255542278,0.041000362485647,-0.166673555970192,0.120000161230564,0.003196152858436,-0.009625377133489) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.059572353959084,-0.175404310226440,-0.128122553229332,0.006148311309516,-0.135603547096252,0.003205042099580,-0.139402806758881,-0.154968544840813,-0.078788384795189,-0.072206899523735,0.112637378275394,-0.054995022714138,-0.127725467085838,-0.011869634501636,-0.138385102152824,-0.037711966782808) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.221212491393089,0.479742318391800,-0.027413997799158,-0.169114977121353,-0.211530745029449,0.028341153636575,-0.016590462997556,-0.005381114780903,0.091754667460918,-0.015648778527975,-0.121605150401592,-0.038153655827045,0.028426241129637,-0.043016515672207,-0.211958006024361,-0.027194986119866) * MODEL2_texOff(vec2(0,0));
res += mat4(0.152906596660614,-0.056163582950830,0.080989599227905,0.058145940303802,-0.147557348012924,-0.051152374595404,-0.017835523933172,0.103423513472080,-0.076953843235970,-0.023182928562164,0.079532906413078,-0.055768214166164,-0.184803873300552,0.002239906927571,-0.096704177558422,0.113040439784527) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.000088276159659,0.005864073056728,-0.065926156938076,-0.080702833831310,-0.088952690362930,0.043106254190207,-0.015461615286767,-0.104023963212967,-0.020491264760494,-0.042243402451277,-0.019395133480430,-0.083798050880432,-0.095270097255707,-0.026383135467768,-0.046977810561657,-0.086272977292538) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.094176590442657,-0.072381123900414,-0.010175809264183,0.083571724593639,0.013122444041073,0.086842127144337,-0.045683495700359,0.041286759078503,0.041912831366062,-0.030247230082750,0.005519576370716,0.028114018961787,-0.063310422003269,-0.073663800954819,-0.139032557606697,0.001013235887513) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.078418798744678,-0.012897014617920,-0.028129139915109,0.100836217403412,0.011829841881990,0.005276684649289,0.017889114096761,0.004225200507790,0.035185299813747,-0.059517554938793,0.032154545187950,-0.002405420411378,-0.051670208573341,-0.014762890525162,-0.100699663162231,-0.053296085447073) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.039212729781866,-0.138342499732971,0.134250164031982,-0.166075810790062,-0.005949476268142,-0.001475329510868,0.013048012740910,-0.005321511067450,0.010449251160026,0.020106632262468,0.080686323344707,-0.097213886678219,0.055474087595940,-0.076156869530678,-0.053803689777851,0.015362417325377) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.115634165704250,-0.121559940278530,0.081793554127216,-0.199316769838333,-0.005737973842770,-0.006621431559324,-0.014465950429440,-0.004648134112358,0.020696887746453,0.071695923805237,0.098878927528858,0.014646164141595,0.253270715475082,0.033353511244059,-0.141453087329865,0.058705221861601) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.006448964588344,0.040613226592541,-0.067223660647869,-0.014365500770509,0.036450091749430,0.024483211338520,0.022998793050647,0.019904252141714,0.150263831019402,-0.097848646342754,0.010465141385794,-0.105117730796337,-0.243018522858620,0.018728112801909,-0.045785691589117,0.085748799145222) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.054561760276556,0.062661521136761,0.002678187331185,0.207336798310280,-0.013817617669702,-0.043278928846121,0.024844191968441,-0.031503651291132,0.016170686110854,0.029895100742579,-0.047396842390299,-0.190820008516312,-0.133847624063492,-0.050654884427786,0.086244009435177,-0.047354433685541) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.000357636628905,-0.159700632095337,0.058174062520266,0.054616533219814,0.005340850446373,0.003999623004347,-0.020615540444851,-0.008571329526603,-0.088857203722000,-0.203182786703110,-0.008521717973053,0.081389077007771,0.041838899254799,0.563394665718079,-0.036373227834702,-0.288486838340759) * MODEL3_texOff(vec2(0,0));
res += mat4(0.192761689424515,0.098417058587074,0.074370861053467,0.026415463536978,0.015101873315871,0.036579526960850,0.020389651879668,0.009842644445598,0.040606416761875,-0.143391057848930,-0.103478416800499,-0.036539394408464,0.106531091034412,-0.105401642620564,0.001560780685395,-0.073884621262550) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.010830401442945,-0.030188729986548,-0.059399250894785,0.107536710798740,0.012782560661435,-0.052051089704037,0.005323032382876,-0.041047874838114,-0.140014261007309,0.028629191219807,-0.062793932855129,0.034039370715618,0.166858389973640,-0.128990069031715,-0.076622255146503,0.079034544527531) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.016955170780420,-0.094995558261871,0.083789244294167,-0.085408270359039,0.017953185364604,0.019387738779187,-0.021724371239543,-0.008320646360517,-0.144058525562286,-0.050196759402752,0.055386394262314,0.053630854934454,-0.146259918808937,-0.155709579586983,0.143100604414940,0.065422542393208) * MODEL3_texOff(vec2(1,0));
res += mat4(0.013553835451603,-0.013391579501331,0.060994490981102,-0.018241690471768,-0.002151631750166,0.027143405750394,0.013415449298918,-0.014154653996229,0.049941353499889,-0.058344792574644,0.135589167475700,-0.022822465747595,-0.017932245507836,-0.003906430676579,0.002731850836426,0.106611751019955) * MODEL3_texOff(vec2(1,1));
res += mat4(0.011906204745173,-0.009346633218229,0.048411499708891,-0.051735714077950,-0.030131453648210,0.031434737145901,-0.149892434477806,-0.020059796050191,0.061857335269451,0.065048381686211,-0.099467515945435,-0.056586723774672,0.003906784113497,-0.061175167560577,-0.006374658085406,-0.016284495592117) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.026063924655318,0.028254283592105,0.023967415094376,-0.040005467832088,0.179141193628311,0.114205673336983,0.037060994654894,0.032564446330070,-0.030430564656854,0.063582263886929,0.035587985068560,-0.056720778346062,-0.190538585186005,-0.004205159842968,0.026124944910407,0.163915187120438) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.074816755950451,0.001843590871431,0.086125411093235,-0.001049166079611,-0.053588964045048,-0.014173631556332,0.005616617389023,0.067666679620743,0.083429820835590,0.084089078009129,-0.072405144572258,-0.026689710095525,-0.012402639724314,0.006096799857914,0.065814368426800,-0.018835429102182) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.085542790591717,-0.008389950729907,-0.043703075498343,0.002586748218164,0.020480161532760,-0.055449951440096,0.072845861315727,-0.030955763533711,0.034577742218971,0.085860252380371,-0.005438704509288,-0.050343908369541,0.016644671559334,-0.008708725683391,-0.058507464826107,-0.051153738051653) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.014164544641972,-0.047588963061571,-0.081899389624596,0.070211179554462,-0.022636292502284,0.043675579130650,0.136720776557922,0.061713479459286,-0.011004893109202,-0.090217173099518,-0.058233551681042,0.006641045678407,-0.092919923365116,-0.015866179019213,0.026384305208921,0.106844149529934) * MODEL4_texOff(vec2(0,0));
res += mat4(0.051441352814436,0.087269358336926,0.014728184789419,0.002147129504010,-0.041722066700459,0.014208224602044,-0.025465518236160,0.022227527573705,-0.106079541146755,-0.024984359741211,0.021127264946699,0.082063905894756,-0.022027198225260,0.081115916371346,-0.016034098342061,0.141025811433792) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.034196659922600,-0.043090030550957,0.054545227438211,0.135061219334602,-0.239911258220673,-0.055105086416006,0.137225583195686,-0.173181205987930,0.036187935620546,-0.011219210922718,-0.031257439404726,-0.037207853049040,-0.256995826959610,-0.079778887331486,-0.022458683699369,0.046781789511442) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.058515004813671,-0.070674978196621,-0.152088090777397,0.174025848507881,-0.027834925800562,-0.018745154142380,0.038615308701992,-0.051506601274014,-0.053029779344797,0.023794881999493,0.130229756236076,-0.034844879060984,-0.222943201661110,-0.150578111410141,-0.118970975279808,0.069977909326553) * MODEL4_texOff(vec2(1,0));
res += mat4(0.078197449445724,-0.002317057456821,-0.082647658884525,0.045367948710918,-0.033757261931896,-0.103349760174751,0.142570048570633,-0.137543350458145,-0.025387447327375,-0.058891415596008,-0.019474903121591,0.072926096618176,-0.015260465443134,-0.050301499664783,0.002690384397283,0.083767637610435) * MODEL4_texOff(vec2(1,1));
res += mat4(0.088032051920891,0.006519911345094,0.027727747336030,-0.028401289135218,0.073997601866722,0.021740812808275,-0.016304444521666,0.044225465506315,-0.046262778341770,-0.000388744170777,0.055828385055065,-0.049018394201994,0.001017355127260,-0.007872732356191,-0.006697150878608,-0.009133456274867) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.080404363572598,-0.043291632086039,0.022605128586292,0.224280446767807,0.011382357217371,-0.022324308753014,-0.029748262837529,-0.014179043471813,-0.005575999617577,0.006232719868422,-0.081431142985821,0.023349009454250,0.003026879625395,0.004236520733684,-0.006529284175485,-0.009033357724547) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.060284037142992,-0.074646756052971,0.026776751503348,-0.056573100388050,-0.006885341368616,0.015510057099164,0.014193550683558,-0.036813329905272,0.043554939329624,-0.068091794848442,0.047250349074602,0.023265592753887,0.012777653522789,0.009259081445634,0.003718445776030,-0.014030180871487) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.001529948553070,0.066047258675098,0.026143871247768,-0.041635178029537,0.025814050808549,0.143443778157234,0.000213277176954,-0.069649614393711,0.093356736004353,-0.058378048241138,-0.044467356055975,0.057204090058804,0.001402483670972,-0.003977238666266,-0.006857100874186,-0.010449540801346) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.022428365424275,-0.015569662675261,-0.035059884190559,0.063888654112816,-0.080697700381279,0.054707702249289,0.070422381162643,0.067517511546612,0.144372910261154,-0.046006340533495,-0.068578206002712,0.159516900777817,0.009936966001987,0.002856791252270,-0.003859812160954,-0.008863931521773) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.097136519849300,-0.008126690052450,0.024339137598872,-0.014047022908926,-0.002680754521862,-0.042027521878481,0.025773325935006,0.086427755653858,-0.028419341892004,-0.004150023218244,-0.078907832503319,0.150234878063202,0.013795936480165,0.012069085612893,0.002142731565982,-0.012588072568178) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.031573265790939,0.022068524733186,-0.091203689575195,0.014054100029171,-0.048083543777466,0.008010400459170,-0.043980497866869,-0.043264675885439,-0.027176640927792,-0.025055052712560,0.010694132186472,0.078072883188725,-0.002611981006339,-0.005292476620525,-0.004690793808550,-0.008687953464687) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.030267363414168,-0.058297604322433,-0.012706059031188,-0.019286684691906,-0.081897780299187,-0.079052545130253,-0.067833907902241,0.020419077947736,-0.053956396877766,-0.214789956808090,-0.035911209881306,-0.034789219498634,0.015730051323771,0.003401834517717,0.001837427960709,-0.009669758379459) * MODEL5_texOff(vec2(1,0));
res += mat4(0.012958222068846,-0.081398494541645,-0.017499724403024,-0.004162252880633,-0.132505819201469,-0.063315168023109,-0.010724226944149,0.038489088416100,0.003191194962710,-0.050568141043186,0.028148811310530,0.060284059494734,0.017216127365828,0.013316144235432,0.004443140700459,-0.010068996809423) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.184701085090637,-0.109520003199577,0.081356741487980,-0.029507726430893,0.048861566931009,-0.045206718146801,-0.027629496529698,0.169770002365112,0.051576621830463,-0.192189246416092,0.050748217850924,-0.030508622527122,0.111152045428753,-0.018890252336860,0.027216156944633,-0.078736238181591) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.116072542965412,-0.090396612882614,0.057331040501595,0.058177676051855,-0.055738005787134,-0.053474791347980,-0.055168982595205,0.039651338011026,0.066777519881725,-0.228347972035408,-0.178068816661835,-0.121996760368347,-0.081294201314449,0.114307977259159,0.033984631299973,-0.076137393712997) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.000584221910685,0.030752608552575,0.013531078584492,-0.004657047800720,0.087679788470268,0.015439914539456,0.013858593069017,0.064612247049809,0.123783290386200,-0.080534778535366,0.023637412115932,-0.172422036528587,-0.004733976908028,-0.039189197123051,0.018963422626257,0.042263157665730) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.050043232738972,0.059795688837767,-0.010812477208674,-0.032569248229265,-0.101894639432430,-0.031634371727705,0.001491751871072,-0.006413368508220,0.132728904485703,-0.151807829737663,-0.068574480712414,0.000602358952165,0.041106238961220,0.068368300795555,-0.218916222453117,0.153954416513443) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.043032083660364,-0.093572676181793,0.018820818513632,0.061789497733116,0.119351990520954,0.076666086912155,-0.009428746998310,0.120425477623940,-0.072615496814251,-0.446584999561310,-0.160966128110886,0.048304971307516,-0.242960542440414,-0.264211803674698,0.124763466417789,0.173378512263298) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.073151282966137,0.021687569096684,0.201786667108536,-0.000367744214600,0.033710066229105,0.127026796340942,0.091706700623035,-0.122261226177216,-0.058855112642050,0.102808512747288,0.020037569105625,-0.107520401477814,0.085892163217068,0.075501933693886,-0.011025790125132,0.045522596687078) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.065445095300674,-0.031377442181110,0.091992340981960,-0.090833447873592,0.022827785462141,-0.044691838324070,-0.367208033800125,-0.030323237180710,0.076566122472286,-0.016711920499802,-0.058082047849894,0.006746033672243,-0.036934487521648,0.014728588983417,0.123435199260712,0.078183621168137) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.104389399290085,-0.016060264781117,-0.096769288182259,0.248459130525589,0.169498726725578,0.173074677586555,0.203914180397987,0.025911657139659,0.004621667787433,-0.095757946372032,-0.191514119505882,0.049470618367195,-0.025443634018302,0.100680805742741,-0.004356438294053,-0.061859473586082) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.049856845289469,0.029403030872345,-0.008251975290477,-0.106575936079025,-0.053315103054047,0.030564343556762,-0.146071076393127,-0.004949903115630,-0.048436481505632,0.054929573088884,0.006891220808029,0.049331899732351,-0.077953882515430,0.070479512214661,0.010725500993431,-0.142068982124329) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.213768631219864,-0.027534753084183,0.331798672676086,-0.000628443842288) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_4x_Photo] mapping 2_4

vec4 hook()
{
vec4 res = vec4(0.043950054794550,-0.179607465863228,-0.004636768251657,-0.044764585793018);
res += mat4(0.011556081473827,0.056632556021214,-0.071497872471809,0.033664785325527,-0.042343322187662,-0.053533565253019,-0.031052302569151,-0.079597249627113,0.063028030097485,0.023083453997970,0.001454020733945,0.076199010014534,0.060299750417471,0.123256728053093,-0.043899267911911,-0.154016166925430) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.005205686669797,0.061256434768438,-0.029414104297757,0.051170513033867,-0.009624702855945,-0.036078698933125,-0.048998169600964,-0.083256192505360,0.013427765108645,-0.050729293376207,-0.027907636016607,-0.021789645776153,-0.064404599368572,-0.034558296203613,0.145659282803535,-0.059632536023855) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.032010115683079,0.032710380852222,-0.015892067924142,0.000996225047857,-0.122466526925564,0.012784490361810,0.015047924593091,0.018174402415752,-0.120803147554398,0.035464074462652,-0.055346664041281,0.011231557466090,0.009732422418892,-0.075396530330181,-0.091585867106915,0.021036688238382) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.020248506218195,-0.042345531284809,0.021929496899247,-0.044377215206623,-0.015941731631756,0.069152049720287,0.048052411526442,0.179550841450691,0.023175563663244,0.007345730904490,-0.158957973122597,0.058507394045591,-0.036723542958498,-0.085289664566517,-0.051196701824665,0.035133425146341) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.057640429586172,-0.005693654995412,-0.104758165776730,0.009291242808104,-0.013616988435388,0.210610374808311,0.070760540664196,-0.059221208095551,-0.101154439151287,0.081455461680889,0.000124634505482,-0.081837996840477,-0.124605081975460,-0.016599116846919,0.055529925972223,-0.004238522611558) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.015604597516358,-0.047834884375334,-0.006093416828662,-0.097312487661839,0.067796640098095,0.125667005777359,0.020882317796350,0.020652640610933,0.047013234347105,0.097376935184002,0.042710002511740,-0.082307770848274,0.034418314695358,0.051415797322989,0.043299321085215,0.034038461744785) * MODEL1_texOff(vec2(0,1));
res += mat4(0.067090332508087,0.024965340271592,-0.043582033365965,-0.020403759554029,0.020137919113040,0.063707873225212,0.009008786641061,0.110653564333916,-0.011982164345682,0.088209994137287,0.007663005497307,-0.065320692956448,0.077334992587566,-0.023126319050789,0.062726251780987,-0.093052491545677) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.013607191853225,-0.019842354580760,-0.019142828881741,-0.003732516895980,-0.003055880544707,0.171256229281425,0.022638969123363,0.031884450465441,-0.054295644164085,0.147375464439392,-0.035187244415283,0.092309825122356,0.025674493983388,0.171788230538368,-0.031327042728662,0.024376824498177) * MODEL1_texOff(vec2(1,0));
res += mat4(0.004113040398806,-0.034805420786142,0.019439637660980,-0.054171811789274,-0.008403118699789,0.135008245706558,0.027973605319858,-0.008526416495442,-0.081623479723930,0.089963532984257,0.040189515799284,-0.026942363008857,0.008069413714111,-0.082403294742107,-0.011511224322021,0.035868953913450) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.011195837520063,0.090355932712555,0.025294411927462,0.271228462457657,0.082384206354618,0.059777237474918,0.062390744686127,-0.033796787261963,-0.006570619065315,0.074803560972214,-0.020095964893699,0.124543651938438,0.032306853681803,-0.046560503542423,-0.054751172661781,0.086915358901024) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.048142805695534,0.286550760269165,-0.044323395937681,0.001393056358211,0.301396310329437,-0.177650794386864,-0.375755995512009,-0.083974190056324,-0.015957508236170,0.221127673983574,-0.034461647272110,0.008113247342408,0.059812594205141,0.088845685124397,-0.029498221352696,0.003625348443165) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.065509408712387,-0.080754913389683,-0.042231321334839,-0.140370056033134,-0.052871257066727,-0.055178359150887,-0.004098539706320,0.037930659949780,-0.059893038123846,-0.028332168236375,-0.031173307448626,-0.050487723201513,0.071645013988018,-0.100772321224213,0.078195050358772,-0.022418856620789) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.055143114179373,0.017876246944070,0.075787156820297,-0.106243155896664,0.025379162281752,0.217992439866066,0.019044151529670,0.283420324325562,0.040726505219936,-0.085019290447235,0.020680654793978,0.055977530777454,0.034059565514326,-0.135320961475372,0.024106189608574,0.052572809159756) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.121087849140167,-0.158713325858116,-0.151195660233498,0.123589493334293,-0.038024965673685,0.106167286634445,0.012983434833586,0.022788604721427,-0.118869975209236,-0.013304524123669,0.043155632913113,-0.015347896143794,0.022578539326787,0.134127095341682,0.051463909447193,-0.075999416410923) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.149576947093010,0.078277148306370,0.099131681025028,0.039380867034197,0.028956940397620,-0.061598554253578,-0.008598059415817,-0.071408130228519,-0.052544694393873,-0.007428829558194,0.022392423823476,-0.043348506093025,0.036799244582653,-0.167312636971474,0.015189974568784,-0.008171581663191) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.073833487927914,-0.131915479898453,-0.000821335997898,-0.032101362943649,0.017934730276465,0.023481272161007,0.073453024029732,0.031840611249208,0.072670176625252,0.056389048695564,-0.001713638426736,-0.045872375369072,-0.036242086440325,-0.143677085638046,0.017605043947697,0.022933220490813) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.058142166584730,-0.088434547185898,0.093562267720699,-0.066398896276951,-0.003803789615631,0.146030873060226,-0.039003524929285,0.032664153724909,-0.067193411290646,0.085089080035686,-0.053032420575619,-0.054101396352053,0.031867619603872,-0.008342231623828,-0.054647706449032,-0.007287176325917) * MODEL2_texOff(vec2(1,0));
res += mat4(0.010410748422146,-0.088282831013203,-0.051210913807154,-0.112129829823971,0.016221692785621,0.088829472661018,0.015817521139979,0.016656111925840,-0.054799534380436,-0.069322548806667,0.016342233866453,-0.046765994280577,0.050200451165438,-0.094000026583672,0.002111719921231,0.104817949235439) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.021172750741243,0.070538140833378,0.055219314992428,-0.052180580794811,0.025540379807353,-0.048435568809509,0.036398552358150,0.024022011086345,-0.084582142531872,-0.066236354410648,-0.124906532466412,-0.085023589432240,-0.092571027576923,0.109208777546883,0.277250587940216,0.472336053848267) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.066413030028343,-0.002135998802260,-0.090422332286835,-0.069515436887741,-0.003384490730241,-0.015410076826811,0.002952604088932,-0.012944702990353,-0.281348258256912,-0.027278818190098,0.233523294329643,0.151306658983231,-0.129693627357483,0.327944248914719,-0.314006656408310,-0.147502452135086) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.062805749475956,-0.111859120428562,-0.012682073749602,0.030098171904683,-0.006465660408139,-0.000243107511778,0.008755425922573,-0.009130740538239,-0.075131274759769,0.050502870231867,-0.188567623496056,-0.092752501368523,0.164829045534134,0.022404644638300,0.141595333814621,0.017620433121920) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.074812002480030,-0.049580849707127,0.012794954702258,-0.093382418155670,0.008551101200283,-0.048531010746956,0.002658087760210,0.007164220325649,-0.017466992139816,-0.024089686572552,-0.069787055253983,-0.078612834215164,0.018664974719286,0.090328752994537,0.034054007381201,-0.302473366260529) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.034110687673092,0.151278153061867,0.050402954220772,-0.137114614248276,0.006789874285460,-0.014496000483632,-0.001745240297168,-0.009160940535367,-0.130984455347061,0.032274018973112,0.068482577800751,-0.038858279585838,0.360804945230484,-0.154105886816978,-0.227743327617645,0.092083610594273) * MODEL3_texOff(vec2(0,0));
res += mat4(0.060340479016304,0.022970804944634,-0.028660584241152,-0.019164344295859,-0.007489134091884,0.009884659200907,0.001034175395034,0.004502676893026,0.083723671734333,0.020594470202923,-0.106848329305649,-0.078417308628559,-0.363925725221634,0.069817595183849,0.091677829623222,0.025597240775824) * MODEL3_texOff(vec2(0,1));
res += mat4(0.050462368875742,-0.159371778368950,-0.008590467274189,-0.048990726470947,0.011263818480074,-0.033915817737579,-0.017350031062961,-0.031052354723215,-0.020203230902553,0.024577945470810,0.001177619327791,-0.046444967389107,0.016547368839383,0.004071104805917,-0.040316294878721,-0.108519516885281) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.057083196938038,0.024616735056043,-0.009333998896182,0.010244928300381,-0.027082676067948,0.001128290314227,0.009814974851906,-0.007897148840129,0.030444819480181,0.094496399164200,-0.049009285867214,-0.051312927156687,0.043737825006247,-0.093660242855549,-0.053299505263567,-0.042710352689028) * MODEL3_texOff(vec2(1,0));
res += mat4(0.006412003654987,-0.045765545219183,-0.026279443874955,0.030760386958718,-0.013821194879711,0.009268399327993,0.010055050253868,-0.016905630007386,0.065123096108437,0.028041915968060,-0.034932985901833,-0.002637828700244,-0.075672343373299,-0.124186977744102,0.039659958332777,-0.028682369738817) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.006665347609669,-0.038282383233309,-0.000596760422923,-0.028533343225718,0.039506960660219,-0.080561809241772,-0.003701779758558,-0.137465327978134,-0.009723140858114,0.033587075769901,-0.068566136062145,-0.003892927663401,0.029001533985138,0.092223212122917,-0.033858131617308,-0.340934634208679) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.047581080347300,-0.024572789669037,0.005932855885476,0.024743376299739,-0.096907906234264,-0.025443116202950,-0.030115354806185,0.014184647239745,0.026061981916428,-0.038252260535955,0.023007988929749,-0.068326637148857,-0.020855085924268,-0.030083451420069,0.118627056479454,-0.110891960561275) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.001984942704439,0.010404615662992,-0.012842222116888,-0.045416854321957,-0.125781968235970,0.046603661030531,-0.006684985011816,-0.008351664058864,-0.067531973123550,0.013357004150748,-0.105825096368790,-0.047470580786467,0.011290446855128,-0.053296923637390,-0.074257932603359,-0.091175250709057) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.037032075226307,-0.061534538865089,0.020107619464397,0.044966645538807,-0.025342162698507,-0.054487857967615,0.014821358956397,-0.006265907082707,-0.019204292446375,0.002168745733798,-0.110167831182480,-0.040910974144936,0.031848330050707,-0.033364649862051,-0.098463498055935,0.040892373770475) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.115109771490097,0.058502133935690,-0.050105307251215,-0.112657316029072,-0.159965768456459,-0.055059030652046,-0.059028942137957,-0.081670962274075,0.035813935101032,-0.040396749973297,-0.014221353456378,-0.043745875358582,-0.088537044823170,0.147987410426140,0.031075794249773,0.104901202023029) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.043755915015936,0.016504066064954,0.059754002839327,-0.073386229574680,0.078680217266083,0.015006572008133,-0.032276440411806,-0.004339267965406,-0.083739928901196,0.037620995193720,0.058593269437551,-0.045114073902369,-0.011354411952198,-0.005259789060801,-0.045706614851952,0.071281827986240) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.112885750830173,0.070805072784424,0.098517410457134,-0.067757144570351,0.048349808901548,-0.147506624460220,0.011202681809664,0.003218573518097,0.039401587098837,-0.010079553350806,-0.002369040157646,-0.084668226540089,0.020076261833310,-0.063444159924984,-0.021137466654181,-0.023911967873573) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.086433812975883,-0.008461135439575,-0.031735863536596,-0.034857183694839,0.057861421257257,-0.086191542446613,-0.072657421231270,0.007093271240592,0.050057638436556,-0.056127298623323,-0.035602997988462,0.065579555928707,0.049221325665712,0.014870803803205,0.030492277815938,0.040477108210325) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.029307672753930,0.071407444775105,-0.021825635805726,-0.012982524931431,-0.031473476439714,0.036878973245621,-0.026997368782759,-0.000111475535959,-0.086312554776669,0.072239026427269,0.065827682614326,0.006441896315664,-0.009882653132081,-0.023914773017168,-0.007506319787353,0.007356741931289) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.081382952630520,0.004786401055753,0.090144172310829,0.095060452818871,0.010989253409207,-0.097951494157314,-0.062653988599777,0.078115418553352,-0.082740940153599,-0.046869482845068,-0.010326482355595,0.145801201462746,0.010202598758042,-0.006736595649272,-0.012234073132277,0.000666391802952) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.151930317282677,-0.007833085954189,-0.037751123309135,-0.109962731599808,0.025747573003173,-0.034054204821587,-0.009098551236093,-0.061218999326229,-0.211281061172485,0.060548625886440,0.018103478476405,-0.072132512927055,-0.006140526849777,-0.003624282311648,-0.017523966729641,0.000280031934381) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.084189005196095,0.016196323558688,-0.039732776582241,-0.035195443779230,0.085706591606140,-0.052417609840631,0.032790899276733,0.018285783007741,0.077952191233635,-0.097064748406410,-0.014297264628112,-0.044941950589418,-0.004044224973768,0.003430845914409,-0.011898301541805,-0.002837307518348) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.008154483512044,0.129997208714485,0.051801387220621,-0.006864421069622,0.076608777046204,0.104305982589722,0.102295778691769,0.078731067478657,0.055503446608782,0.053707301616669,0.013697104528546,0.064717873930931,0.009073537774384,-0.008826515637338,-0.006845795549452,0.006476053968072) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.001482626539655,-0.094081260263920,-0.149162158370018,-0.124493069946766,-0.011225858703256,0.162014722824097,-0.057436563074589,0.030215755105019,0.288588911294937,0.070217996835709,-0.057018399238586,0.026250524446368,-0.005474342964590,-0.004138668999076,-0.018022360280156,0.000665638537612) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.107987977564335,0.050220578908920,0.136827871203423,-0.013532130979002,0.076365597546101,-0.059630196541548,-0.048656508326530,-0.012408715672791,-0.153758734464645,0.019157867878675,0.072616264224052,-0.022204587236047,0.001939315465279,0.000110804707219,-0.010156415402889,-0.008427311666310) * MODEL5_texOff(vec2(0,1));
res += mat4(0.012640631757677,-0.044416453689337,-0.043772473931313,-0.037879727780819,0.067456714808941,0.049960274249315,-0.040556743741035,0.030578158795834,-0.043904833495617,0.066971406340599,0.050400298088789,-0.128536939620972,0.009411639533937,-0.003659365233034,-0.007163432892412,0.005460042040795) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.046355139464140,-0.088891312479973,-0.117798030376434,-0.154811188578606,0.170398414134979,0.059393871575594,0.050667960196733,0.010687380097806,-0.273425132036209,-0.019703680649400,0.126228034496307,-0.023999644443393,0.000322949228575,0.000976319308393,-0.012904142029583,0.002010632539168) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.090871803462505,-0.076690159738064,0.020794484764338,0.000142650547787,0.135297238826752,0.125736773014069,-0.084934271872044,0.054322857409716,-0.086405724287033,0.008300661109388,-0.057942066341639,-0.013660231605172,0.002995670540258,-0.004216219764203,-0.005390904378146,-0.011877696029842) * MODEL5_texOff(vec2(1,1));
res += mat4(0.054542854428291,-0.089627623558044,-0.199029415845871,-0.165624096989632,0.056064516305923,-0.076868608593941,-0.024821737781167,0.061551164835691,-0.015543595887721,-0.094513431191444,0.089503742754459,-0.140517979860306,0.033769864588976,0.102105148136616,-0.147404238581657,-0.178663402795792) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.031521413475275,0.015758305788040,0.076821446418762,-0.166834801435471,-0.009300841018558,-0.078997038304806,0.077096268534660,0.074447549879551,-0.020900428295135,0.043227810412645,-0.267424821853638,0.163324475288391,0.060973577201366,-0.125023365020752,0.140717282891273,0.019832381978631) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.042197965085506,-0.025978162884712,-0.048745520412922,0.122609674930573,-0.033543821424246,0.036473374813795,-0.011140871793032,-0.026231929659843,-0.066684760153294,0.214076340198517,-0.009795264340937,-0.047099009156227,-0.069729432463646,0.000778722867835,-0.001971049234271,-0.030561689287424) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.117588907480240,-0.010538153350353,-0.021380579099059,0.037348404526711,-0.023621479049325,-0.140544086694717,-0.053491387516260,-0.110973134636879,0.037313412874937,-0.009253259748220,-0.020727382972836,0.038969114422798,0.148071125149727,0.013777636922896,-0.242097645998001,0.048648782074451) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.047163061797619,-0.030908444896340,-0.109083265066147,-0.059781439602375,-0.129210844635963,-0.170150369405746,0.095807053148746,-0.214825004339218,0.024179890751839,0.050806142389774,-0.100311368703842,-0.124083928763866,-0.128140538930893,-0.099504336714745,0.231558844447136,-0.174568265676498) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.093759670853615,-0.069313853979111,-0.022714018821716,0.061970539391041,0.108927376568317,-0.203866004943848,-0.166991829872131,-0.103477664291859,-0.331786394119263,-0.258909374475479,0.060094293206930,0.043786402791739,0.227314338088036,-0.021788066253066,-0.049626238644123,-0.055947862565517) * MODEL6_texOff(vec2(0,1));
res += mat4(0.008666708134115,-0.049425862729549,-0.059445757418871,0.053535427898169,-0.027090853080153,0.027319058775902,-0.006714139133692,0.172003775835037,-0.045143224298954,-0.046402424573898,0.033488467335701,0.094972088932991,-0.041657485067844,0.024104220792651,-0.031573843210936,0.024208804592490) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.019774222746491,-0.121695920825005,0.000176725588972,-0.002777570392936,-0.001937006833032,0.164524868130684,-0.000219854860916,-0.111546084284782,0.023934448137879,0.000141206997796,0.030424660071731,-0.115628577768803,-0.003928785212338,0.005719130393118,0.011438649147749,0.109351515769958) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.029490431770682,-0.067499652504921,0.051053255796432,-0.004555696155876,0.116970874369144,0.061448227614164,-0.105970941483974,0.070183716714382,-0.029041754081845,0.070209950208664,0.056723784655333,0.044321406632662,-0.063663877546787,0.002203789539635,0.017344530671835,0.089350275695324) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.587368369102478,-0.081422150135040,-0.270264536142349,-0.127214297652245) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_4x_Photo] mapping 2_5

vec4 hook()
{
vec4 res = vec4(0.041582874953747,-0.029669672250748,-0.077733747661114,-0.097634978592396);
res += mat4(-0.035371728241444,-0.090622060000896,-0.010423498228192,0.091062568128109,-0.032663870602846,-0.037858385592699,0.083821386098862,0.051468364894390,0.008175441995263,0.016140228137374,0.192817062139511,0.021057093515992,0.068926170468330,0.043672785162926,0.040844768285751,-0.103648886084557) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.049266871064901,0.016822053119540,0.052060339599848,0.051410153508186,0.038455296307802,-0.074512615799904,0.029659435153008,0.050870206207037,0.045093853026628,0.023962650448084,0.024664765223861,0.096134461462498,-0.028123440220952,-0.057871587574482,-0.049590054899454,0.035789992660284) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.042939566075802,-0.032335892319679,-0.028375172987580,-0.001315385452472,0.006786196492612,0.051233261823654,0.128423795104027,-0.040674172341824,0.008711215108633,-0.008023445494473,-0.071450419723988,0.064281776547432,0.023167219012976,0.054195724427700,0.056328523904085,-0.009117327630520) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.149187549948692,-0.074898116290569,0.030423397198319,0.088866665959358,-0.101599693298340,0.083594247698784,0.203972414135933,-0.020747750997543,-0.056032869964838,0.073300220072269,0.038304913789034,-0.102668151259422,0.019736977294087,-0.049101568758488,0.017526283860207,-0.048118807375431) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.012543624266982,-0.023783409968019,-0.083877041935921,-0.061740633100271,-0.014988098293543,0.059713877737522,-0.104264423251152,-0.007262282073498,0.098443880677223,-0.002396257827058,-0.049917556345463,0.011797622777522,-0.212467059493065,-0.031854804605246,0.040856096893549,0.056674972176552) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.014753942377865,-0.092059358954430,0.022330343723297,-0.100211009383202,-0.012484766542912,0.010621461085975,-0.100223056972027,0.054953690618277,0.055909432470798,0.078812502324581,0.054848659783602,0.077630363404751,-0.080690346658230,-0.030257642269135,0.123725272715092,0.043640188872814) * MODEL1_texOff(vec2(0,1));
res += mat4(0.019889760762453,0.093320943415165,-0.074189513921738,0.003075629007071,0.006716040894389,0.043714515864849,0.056863434612751,-0.058967381715775,-0.008355683647096,-0.052188593894243,-0.008657947182655,0.033694613724947,0.002021471736953,-0.014146562665701,0.021444462239742,-0.079075753688812) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.000840561348014,0.012873524799943,-0.021359497681260,0.041109234094620,0.216281965374947,0.152655601501465,0.006563933566213,-0.070576526224613,0.007569327019155,0.079469434916973,-0.055502172559500,-0.080784678459167,0.062463171780109,-0.005632070824504,-0.030732437968254,-0.150022178888321) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.002702692756429,-0.054854106158018,-0.001791406539269,-0.069515459239483,0.009851500391960,0.026635175570846,-0.000061122918851,-0.203246876597404,-0.007646912243217,0.068287946283817,0.059340998530388,0.063708350062370,0.020474826917052,-0.037326030433178,0.038206055760384,0.004247811622918) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.023403318598866,0.020698333159089,-0.165677011013031,-0.172999531030655,0.123735986649990,-0.163300350308418,-0.037438880652189,-0.006858516018838,-0.015798432752490,0.205875575542450,-0.068187288939953,-0.109933264553547,0.002788067096844,0.078052461147308,-0.053904335945845,0.104631572961807) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.012637353502214,0.177081137895584,-0.057486847043037,-0.010703414678574,-0.044031172990799,-0.282231867313385,-0.092747658491135,0.062550298869610,0.061358992010355,0.179026827216148,0.065840020775795,-0.015628280118108,0.049540031701326,0.004283422604203,-0.225208193063736,0.285131812095642) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.021684808656573,-0.049394778907299,-0.104341983795166,0.160629943013191,-0.057606924325228,0.014212685637176,-0.047599654644728,-0.029460342600942,0.001623029471375,0.005519984755665,0.017348999157548,-0.071096666157246,0.000818450585939,-0.204169422388077,-0.183212414383888,0.294939219951630) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.035148128867149,-0.101358659565449,0.178800508379936,0.099576808512211,0.428532809019089,0.163463398814201,-0.017501298338175,-0.099120438098907,-0.090033784508705,-0.040886621922255,0.015938917174935,0.020445177331567,-0.017535664141178,0.170246481895447,-0.105365440249443,-0.107136040925980) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.250280261039734,-0.144026637077332,0.091356255114079,-0.072114735841751,-0.022485325112939,-0.089379958808422,-0.098785571753979,-0.090870164334774,0.150154396891594,0.155508756637573,0.049393568187952,-0.088245071470737,0.112640790641308,0.221765697002411,0.022548643872142,0.071832582354546) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.070039443671703,0.202771887183189,-0.177725866436958,-0.151357099413872,0.082652762532234,0.018178083002567,-0.061396084725857,0.002014381578192,-0.002459549112245,-0.113122619688511,-0.118101656436920,0.051343951374292,-0.044836364686489,-0.091411635279655,0.006621298845857,0.031997770071030) * MODEL2_texOff(vec2(0,1));
res += mat4(0.037819053977728,-0.025224080309272,-0.058860249817371,0.077027060091496,-0.095376931130886,0.053538605570793,-0.058951206505299,-0.047900114208460,-0.031923800706863,-0.065073564648628,0.012068573385477,-0.078681595623493,-0.021112788468599,0.018817285075784,0.002917891135439,0.020041886717081) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.120504029095173,-0.169021621346474,-0.067757315933704,0.072151266038418,0.238753899931908,-0.047673456370831,-0.043212391436100,0.028133369982243,0.075957648456097,-0.071813836693764,0.140313580632210,0.026671031489968,-0.020892588421702,0.188558265566826,-0.004975659307092,-0.077545583248138) * MODEL2_texOff(vec2(1,0));
res += mat4(0.053820986300707,0.077762164175510,0.042718928307295,-0.035874947905540,-0.010491561144590,-0.015698954463005,-0.037964724004269,0.010443111881614,0.004450116306543,-0.017237439751625,-0.007028094492853,-0.022837838158011,-0.070680752396584,0.033834930509329,-0.003049878170714,0.150875166058540) * MODEL2_texOff(vec2(1,1));
res += mat4(0.037715490907431,-0.001000364893116,-0.120676480233669,0.035306632518768,-0.003463685978204,-0.046425286680460,-0.024958224967122,-0.018722442910075,-0.014964125119150,0.062804274260998,0.011987798847258,-0.160807311534882,-0.004270563367754,-0.041847448796034,-0.213340267539024,-0.068366363644600) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.028019199147820,-0.132360368967056,-0.044379588216543,0.226013720035553,-0.012028730474412,0.020064422860742,-0.023609351366758,-0.001826121122576,-0.014656428247690,-0.182069987058640,-0.142215609550476,-0.203873530030251,0.211455687880516,0.132725760340691,-0.089118286967278,-0.142517149448395) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.035209164023399,0.085580967366695,-0.190683364868164,-0.159343242645264,0.036876283586025,0.024674808606505,-0.017637917771935,-0.015822745859623,-0.006908370647579,-0.053850580006838,-0.055171985179186,-0.041600406169891,-0.012413407675922,0.026802662760019,0.034185484051704,0.173225477337837) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.109596088528633,-0.177780643105507,-0.163458719849586,0.028173446655273,-0.001094223116525,-0.037406262010336,-0.009639420546591,0.013654749840498,0.007998534478247,-0.025043996050954,0.021894752979279,0.105106212198734,0.203557208180428,-0.146522834897041,0.123077504336834,0.094375275075436) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.068403370678425,-0.182719781994820,0.025785023346543,0.055097870528698,-0.004605200607330,0.019461225718260,-0.022389527410269,-0.006582492496818,0.007746868301183,-0.202663928270340,-0.019987504929304,-0.175789237022400,0.328311562538147,0.022245461121202,-0.008827822282910,-0.200035125017166) * MODEL3_texOff(vec2(0,0));
res += mat4(0.010411125607789,0.003773930249736,-0.099949516355991,-0.023685898631811,0.031911138445139,0.035242322832346,-0.002961856313050,0.001292679808103,0.039851419627666,-0.119162455201149,0.135484382510185,-0.040821388363838,-0.055009864270687,0.166610315442085,0.127973183989525,0.028367701917887) * MODEL3_texOff(vec2(0,1));
res += mat4(0.120047375559807,0.011015602387488,-0.113168351352215,0.043758831918240,0.009359640069306,-0.044180672615767,-0.006997592281550,0.031491704285145,0.014505407772958,-0.028869250789285,0.050596568733454,-0.031414665281773,-0.073836162686348,-0.168216407299042,0.018922464922071,0.138926431536674) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.063072867691517,-0.125946149230003,0.104536175727844,-0.029191326349974,-0.017174568027258,0.032688796520233,-0.034872602671385,-0.016488226130605,0.113188706338406,-0.072764232754707,0.149929806590080,-0.053995165973902,-0.633235156536102,-0.070943787693977,0.049254320561886,0.144246801733971) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.014235471375287,-0.046443331986666,-0.080179467797279,0.045491658151150,0.002819951856509,0.026847997680306,0.009043839760125,-0.014509809203446,-0.093996644020081,-0.115420825779438,-0.043491531163454,-0.060228884220123,0.038884237408638,0.110596075654030,0.117883831262589,-0.088278166949749) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.018409652635455,-0.066631950438023,-0.019128307700157,0.020003240555525,-0.052740104496479,0.005138678941876,0.066824764013290,-0.043274685740471,0.123879030346870,-0.092814102768898,0.041226144880056,-0.094594083726406,-0.000043473086407,-0.080138735473156,0.004715648945421,0.202601850032806) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.023983485996723,-0.033282898366451,-0.067305169999599,0.059760224074125,-0.043918333947659,-0.053255967795849,-0.077434301376343,-0.054971802979708,0.066590145230293,0.030534824356437,0.067586354911327,0.018333859741688,0.018372217193246,0.058877777308226,-0.058413576334715,0.027367055416107) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.017601126804948,-0.049677569419146,0.001754843280651,-0.029611157253385,-0.014338497072458,-0.015262618660927,-0.038408834487200,-0.010101791471243,0.147412493824959,-0.021068461239338,0.053591381758451,0.065263278782368,0.029955964535475,-0.089627139270306,-0.147102743387222,0.083688445389271) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.054591618478298,0.081123307347298,-0.122611381113529,-0.032120332121849,-0.095318749547005,0.048900455236435,0.055238571017981,-0.081209197640419,-0.102981403470039,0.003954345826060,0.015739494934678,0.000314161618007,0.091722302138805,0.136974349617958,0.053862944245338,0.013894178904593) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.018000375479460,0.041281551122665,-0.008075953461230,0.009242947213352,-0.162689954042435,-0.119468495249748,-0.003843643236905,0.078638315200806,-0.097577899694443,0.012502409517765,0.055657647550106,-0.108123756945133,0.035728141665459,0.066610135138035,0.017996486276388,-0.062990076839924) * MODEL4_texOff(vec2(0,0));
res += mat4(0.047815378755331,0.011761049740016,-0.050076283514500,0.030762305483222,-0.022649962455034,-0.090110376477242,0.001489076530561,0.013610866852105,-0.179886907339096,0.044263437390327,0.039583887904882,-0.033129874616861,-0.010323289781809,-0.033219218254089,0.039092034101486,0.034992311149836) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.048080738633871,-0.150591686367989,-0.046622581779957,0.042736943811178,0.078216865658760,0.158878952264786,-0.013749622739851,-0.151414632797241,-0.008394843898714,-0.049236617982388,0.027679290622473,0.041940286755562,-0.024529075250030,-0.049877580255270,-0.093156732618809,0.035785116255283) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.013263220898807,0.114928416907787,-0.034679304808378,-0.089141853153706,0.136637046933174,0.069567613303661,0.012578326277435,-0.152750536799431,-0.006401061546057,-0.100482419133186,0.010187925770879,-0.018328754231334,0.085544928908348,0.032671209424734,-0.067754335701466,-0.102180920541286) * MODEL4_texOff(vec2(1,0));
res += mat4(0.059344250708818,0.053095929324627,-0.036556664854288,-0.054075956344604,-0.009752223268151,-0.123300544917583,-0.025202047079802,-0.022033138200641,-0.089783422648907,0.082620732486248,-0.009744545444846,-0.017901634797454,-0.042050156742334,-0.083284132182598,-0.052794482558966,0.051678296178579) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.082853384315968,-0.044300366193056,-0.011014888994396,0.053356043994427,-0.061447169631720,-0.041235864162445,0.099587641656399,0.032418210059404,-0.019190985709429,-0.084061041474342,-0.078493952751160,0.036807306110859,0.014287538826466,-0.000229950062931,-0.011033764109015,-0.006030276417732) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.190398350358009,0.099853776395321,0.073978811502457,-0.031885605305433,-0.009725999087095,0.008138146251440,-0.063974529504776,0.046212960034609,0.014061377383769,0.048964682966471,0.167768046259880,0.010805226862431,0.008068841882050,0.003330167150125,-0.018554586917162,0.001701885019429) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.011008606292307,0.034553658217192,-0.010273705236614,-0.036226995289326,0.047638390213251,0.033446501940489,-0.045337550342083,0.080785572528839,-0.048328138887882,-0.027921427041292,0.017993424087763,0.060215838253498,-0.000843073881697,-0.001418815925717,-0.008022107183933,0.009145366959274) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.027439502999187,0.083494469523430,-0.015332849696279,0.042588904500008,0.036829970777035,0.037225149571896,-0.182943597435951,0.071166053414345,0.036592889577150,0.131027653813362,-0.077873647212982,0.041301794350147,0.012128667905927,0.009738145396113,-0.010142665356398,-0.012796369381249) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.152289301156998,0.227789238095284,0.044488057494164,-0.097353331744671,0.002536058891565,-0.005767919588834,-0.061051867902279,0.003910200204700,0.049144823104143,-0.091889642179012,-0.227099850773811,0.007898922078311,0.010140416212380,0.012088432908058,-0.014420895837247,-0.005338510498405) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.005175589118153,0.043036531656981,-0.022698691114783,0.026294196024537,0.002548623131588,0.042635001242161,-0.031214946880937,-0.037077907472849,0.015517854131758,0.130794033408165,-0.123219527304173,-0.091698713600636,0.001307502971031,0.001214218791574,-0.001081301365048,0.010273549705744) * MODEL5_texOff(vec2(0,1));
res += mat4(0.001144812325947,0.009526521898806,0.009202362038195,0.001859937096015,-0.079590275883675,0.000105126513517,-0.049855764955282,-0.016964228823781,-0.017930623143911,0.045281339436769,0.023550294339657,-0.040333721786737,0.012782715260983,0.003362907795236,-0.009244537912309,-0.013922686688602) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.005465133115649,0.188771411776543,0.027285788208246,-0.077173478901386,-0.012040810659528,-0.085425913333893,-0.037780296057463,-0.050630543380976,0.053472559899092,-0.164346829056740,0.003749511670321,-0.038141053169966,0.013787310570478,0.005583312828094,-0.009723296388984,-0.010024854913354) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.006329050287604,0.079078525304794,-0.005097878631204,-0.009065205231309,0.040266383439302,0.118539847433567,-0.003431606106460,-0.152765333652496,-0.055527519434690,0.016054535284638,-0.006413253489882,-0.116372659802437,0.008001039735973,-0.008965408429503,0.002997201867402,0.005934015847743) * MODEL5_texOff(vec2(1,1));
res += mat4(0.061056032776833,-0.131626561284065,0.062417641282082,0.033318959176540,-0.003661539405584,-0.037110965698957,0.161397323012352,0.028993308544159,0.036502797156572,-0.108852297067642,0.125992134213448,-0.122728228569031,0.062082841992378,-0.079864412546158,-0.023356102406979,0.107542984187603) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.032138220965862,0.030135428532958,-0.041605956852436,-0.149443075060844,-0.077407136559486,0.062641017138958,-0.052063599228859,-0.024017240852118,0.012336204759777,-0.052558660507202,-0.026242414489388,0.008001726120710,0.036893986165524,-0.155681371688843,-0.413945227861404,0.154840499162674) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.011481002904475,-0.171003863215446,-0.019133232533932,-0.094767764210701,0.017635425552726,-0.008902143687010,-0.036485474556684,-0.003686814801767,-0.008761449716985,0.047491658478975,-0.006214508786798,0.021644109860063,-0.029445597901940,-0.026344602927566,0.108735024929047,-0.159648567438126) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.010628208518028,0.110656835138798,-0.023496553301811,-0.047630123794079,-0.034165844321251,0.073670499026775,0.069332234561443,0.079508937895298,0.004775921814144,-0.007169928401709,0.084136947989464,-0.118235141038895,0.047149289399385,0.246459141373634,-0.094051524996758,-0.048481378704309) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.224249646067619,-0.005351240746677,0.057894323021173,-0.066546440124512,-0.076404601335526,-0.169729709625244,0.075320877134800,0.146345004439354,-0.213696405291557,-0.022726364433765,0.072168678045273,0.047150235623121,-0.274406135082245,-0.182780921459198,0.126075029373169,0.189008280634880) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.034406799823046,-0.013171024620533,0.123473607003689,-0.017061518505216,0.028832716867328,-0.142513409256935,0.032471165060997,-0.082217447459698,-0.007552191149443,-0.015797581523657,0.221392199397087,0.115644559264183,0.064815022051334,-0.196504563093185,-0.070345260202885,0.104298122227192) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.027059176936746,0.042293872684240,0.027881283313036,-0.018505942076445,0.201553523540497,0.010562420822680,0.026548689231277,-0.123604260385036,-0.010636713355780,-0.029774460941553,0.012025637552142,-0.096753865480423,0.020288800820708,0.289936065673828,-0.108081936836243,-0.161798208951950) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.077472805976868,0.103395827114582,0.006940430961549,-0.055076945573092,-0.037616781890392,0.087230145931244,-0.110831141471863,-0.046168215572834,0.032458096742630,0.174282342195511,0.120857641100883,-0.165336951613426,0.161776751279831,0.210284128785133,0.053156502544880,-0.105497233569622) * MODEL6_texOff(vec2(1,0));
res += mat4(0.051559962332249,0.029776008799672,0.008657290600240,0.036768939346075,0.185821473598480,0.026549711823463,0.089214637875557,-0.008653275668621,0.039225772023201,0.032665438950062,0.011972579173744,-0.021374111995101,-0.061245042830706,-0.061554696410894,0.121528916060925,0.138149693608284) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.308753728866577,-0.263761311769485,0.004154600203037,-0.043202832341194) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_4x_Photo] mapping 2_6

vec4 hook()
{
vec4 res = vec4(-0.400554686784744,0.048765327781439,-0.293038070201874,0.146809250116348);
res += mat4(-0.013194939121604,-0.010320375673473,0.043077018111944,0.078275702893734,-0.034812796860933,-0.018410133197904,-0.018485071137547,-0.025672148913145,-0.041129671037197,-0.011980611830950,-0.054003391414881,-0.038344517350197,0.135961249470711,-0.075541280210018,0.032046344131231,-0.091034777462482) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.056138757616282,0.006071643903852,0.022805724292994,0.013463675044477,0.013208263553679,-0.058238882571459,-0.022443065419793,-0.014668694697320,0.040527962148190,0.032747227698565,0.071239434182644,-0.040786638855934,0.153367429971695,-0.061117932200432,0.107814021408558,-0.151143297553062) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.055681630969048,-0.022028941661119,-0.041814155876637,0.006511115469038,-0.009123346768320,0.097311414778233,-0.030134178698063,0.035420693457127,0.147365599870682,0.083500467240810,0.121212124824524,-0.062546007335186,0.096581071615219,-0.026217676699162,0.018642075359821,-0.025920489802957) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.079676724970341,-0.000802412047051,0.033019836992025,-0.041144289076328,-0.048799440264702,-0.024124113842845,0.034996170550585,-0.101218603551388,0.015029623173177,0.017250936478376,-0.023435181006789,0.036253970116377,0.146870687603951,0.041793774813414,0.019379058852792,-0.063201017677784) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.050210561603308,-0.005324668716639,0.062543936073780,0.024440607056022,0.054433066397905,0.043553516268730,0.108852967619896,-0.051909152418375,0.111638128757477,-0.044698141515255,-0.045305818319321,-0.015749324113131,0.067455843091011,-0.114394925534725,0.078549437224865,0.019238578155637) * MODEL1_texOff(vec2(0,0));
res += mat4(0.009135300293565,-0.003430170938373,0.076472200453281,-0.021810105070472,-0.045387934893370,0.157621294260025,0.103951871395111,0.000932947499678,0.148218557238579,0.043226707726717,-0.021649798378348,-0.002088122535497,0.295739442110062,-0.049169450998306,0.044702026993036,0.078149423003197) * MODEL1_texOff(vec2(0,1));
res += mat4(0.074207849800587,-0.013416336849332,-0.053369075059891,0.065457306802273,-0.028290886431932,-0.083390772342682,0.032318320125341,-0.027917178347707,-0.047456119209528,0.114397235214710,-0.056863468140364,0.038569528609514,0.183245688676834,-0.019709646701813,0.017268892377615,-0.169078886508942) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.012157190591097,0.047174133360386,0.047749526798725,-0.050390936434269,-0.308930993080139,-0.045908797532320,-0.038981154561043,-0.112095817923546,-0.168809667229652,-0.162655949592590,-0.060117691755295,0.048880852758884,0.128666996955872,0.025679402053356,0.029819775372744,-0.063237376511097) * MODEL1_texOff(vec2(1,0));
res += mat4(0.033346559852362,0.018298549577594,0.008522612042725,0.018400581553578,-0.174049019813538,0.250935882329941,-0.062414743006229,-0.070247195661068,-0.099038302898407,-0.009109430015087,0.025671904906631,0.019037013873458,0.163775414228439,0.050674840807915,-0.061761450022459,-0.077896192669868) * MODEL1_texOff(vec2(1,1));
res += mat4(0.004395138006657,0.002944766078144,0.033175285905600,-0.041165351867676,0.054837673902512,-0.000691783730872,0.004663442261517,-0.068075872957706,0.015058623626828,0.012551867403090,-0.100324884057045,-0.061638947576284,0.068812437355518,-0.172691553831100,-0.045798730105162,0.037749066948891) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.096362575888634,0.044271796941757,0.014869937673211,-0.142582148313522,0.009058420546353,-0.176262721419334,-0.009497089311481,0.138674944639206,0.025445792824030,0.245885580778122,0.007844238542020,0.010119587182999,-0.023556962609291,-0.088125199079514,-0.030801337212324,0.043966084718704) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.063980162143707,-0.050481520593166,0.010169639252126,-0.073868185281754,-0.075694188475609,0.020356457680464,-0.023743329569697,0.052568566054106,-0.021437749266624,-0.037627946585417,-0.034047931432724,0.034082114696503,0.018044479191303,-0.406350225210190,-0.012287865392864,-0.106474556028843) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.099028460681438,-0.016189917922020,0.005891996435821,0.006904726382345,0.065073907375336,0.162067294120789,0.034022729843855,-0.094688102602959,-0.072075873613358,-0.101483076810837,0.052545342594385,0.119134090840816,0.010590895079076,-0.062930643558502,0.035989489406347,-0.013077624142170) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.555100083351135,-0.177773579955101,-0.014683699235320,0.147417798638344,-0.037165373563766,0.036560777574778,0.065533116459846,0.025683641433716,0.037566397339106,-0.022104479372501,0.056833568960428,0.038565732538700,-0.091316774487495,0.148741319775581,0.091792106628418,-0.052366144955158) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.113637104630470,0.265001833438873,-0.006477980408818,0.053626451641321,-0.060249213129282,-0.121659219264984,0.028735285624862,0.004658251069486,0.057331770658493,0.020173879340291,-0.097375154495239,0.008530200459063,-0.120943352580070,-0.000870900519658,-0.005858882796019,-0.053233157843351) * MODEL2_texOff(vec2(0,1));
res += mat4(0.042298857122660,0.094780467450619,-0.000211821214180,0.019149817526340,0.007415325846523,-0.116170942783356,-0.004752825945616,0.065243326127529,0.123139709234238,-0.006666031666100,0.051587887108326,0.024091757833958,0.111305005848408,-0.082556709647179,-0.019146738573909,0.002238179557025) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.038387626409531,-0.055855587124825,-0.001062088296749,0.067126490175724,-0.117503896355629,0.048145424574614,0.023404926061630,-0.095297262072563,-0.046469494700432,0.037512674927711,-0.031943049281836,-0.067758858203888,0.107107192277908,-0.052540410310030,-0.009349889121950,-0.003699719207361) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.096254609525204,-0.057040054351091,-0.006731925532222,0.001516621676274,-0.066847510635853,0.093626834452152,-0.010303329676390,0.036910239607096,-0.020621089264750,-0.063412383198738,0.002935279393569,-0.002657101023942,0.050907235592604,-0.146045804023743,-0.078774698078632,0.026909822598100) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.044374004006386,-0.034517906606197,-0.024777108803391,-0.136492252349854,-0.026717239990830,-0.032140925526619,-0.014719617553055,0.034103974699974,-0.025152020156384,0.085757747292519,-0.051231123507023,-0.003935563843697,-0.002149869455025,-0.090958423912525,-0.036355908960104,0.037055540829897) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.327330529689789,-0.172874793410301,0.033832665532827,0.141815781593323,-0.017460091039538,0.005015183240175,-0.000552892917767,0.006597543135285,-0.056814067065716,0.079579003155231,-0.009878133423626,0.074376024305820,0.153078392148018,0.212701752781868,-0.074157603085041,-0.084142394363880) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.059281334280968,0.199116453528404,0.032606277614832,-0.032900609076023,-0.004151205997914,0.009507494978607,-0.030330019071698,0.012416246347129,-0.039262626320124,0.059138782322407,-0.093584574759007,0.025427799671888,-0.011591751128435,-0.102503798902035,-0.056385964155197,-0.001269014668651) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.109153851866722,0.098514951765537,-0.014066992327571,-0.073226220905781,-0.030290599912405,0.004655986558646,-0.012613250873983,0.005759603343904,0.039284307509661,-0.043179355561733,0.038246497511864,0.039870385080576,0.045291554182768,-0.181249648332596,-0.049477033317089,-0.016677556559443) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.104443639516830,-0.185288175940514,-0.108238749206066,-0.106070257723331,-0.001296845148318,0.015279390849173,0.003698874963447,-0.002731007989496,-0.077715098857880,-0.163610652089119,0.079979598522186,-0.156708657741547,0.376753032207489,-0.131756663322449,-0.093601495027542,0.248667687177658) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.196834206581116,-0.099251009523869,-0.061716884374619,0.033040545880795,-0.009294228628278,0.007133937906474,-0.031721454113722,0.008344482630491,-0.226057246327400,-0.290994703769684,-0.037687018513680,-0.216987267136574,0.029427308589220,0.347995430231094,-0.052713204175234,-0.098913490772247) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.006428627762944,0.050441913306713,-0.044077027589083,-0.040821712464094,-0.036233447492123,0.004876613151282,-0.032520648092031,0.007851196452975,0.032895646989346,-0.027340525761247,0.014082010835409,0.006441920995712,-0.122960798442364,0.230944842100143,-0.028673611581326,0.132156834006310) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.033354107290506,0.125211775302887,-0.062232725322247,0.019588889554143,-0.008769370615482,0.022162986919284,0.019553847610950,0.005795052740723,-0.012143716216087,0.049157340079546,0.001721332548186,-0.029263652861118,-0.065746143460274,-0.172609448432922,-0.055064760148525,0.083460934460163) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.032436590641737,0.017943516373634,-0.113197833299637,-0.081201896071434,-0.017831113189459,-0.019430682063103,-0.035289257764816,0.013499261811376,-0.023953702300787,0.129820555448532,0.009291781112552,0.024440279230475,0.017871070653200,-0.134188264608383,0.004845988005400,-0.046710368245840) * MODEL3_texOff(vec2(1,1));
res += mat4(0.015114166773856,0.007385669741780,0.012174754403532,-0.046932876110077,0.028741892427206,-0.090586833655834,0.038945633918047,-0.026277102530003,0.031370874494314,0.062134340405464,0.037019703537226,-0.059949938207865,-0.079487405717373,0.178295880556107,-0.091379486024380,0.088296197354794) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.106363624334335,-0.110560700297356,-0.026160430163145,0.044336497783661,0.109705269336700,-0.003342110896483,0.028159817680717,0.125600293278694,-0.008082498796284,-0.006154866889119,-0.009312532842159,-0.030508453026414,0.056453499943018,-0.167594835162163,0.024532413110137,0.095535606145859) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.031459867954254,0.015361618250608,-0.031788740307093,-0.009500603191555,-0.050679482519627,0.076644591987133,0.003980577923357,0.049864523112774,-0.009710650891066,0.038721784949303,0.016244096681476,-0.003134527010843,0.054854720830917,-0.009145620279014,0.008141747675836,0.054595202207565) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.047173686325550,0.010279422625899,-0.011085007339716,0.114443466067314,-0.028310922905803,0.011265153996646,0.060549750924110,-0.002807230921462,0.009394846856594,0.012270500883460,-0.063750319182873,-0.061965085566044,-0.168577611446381,-0.134052783250809,0.007398652378470,-0.060921590775251) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.032047752290964,0.020876767113805,-0.015176172368228,-0.006016372237355,-0.142829939723015,-0.005498896352947,0.041301608085632,0.047941286116838,0.166491314768791,-0.044279988855124,-0.088982559740543,0.112736225128174,0.023445162922144,0.123329848051071,-0.001970336074010,-0.050435498356819) * MODEL4_texOff(vec2(0,0));
res += mat4(0.058374468237162,-0.006502616684884,-0.014671871438622,0.006860265508294,-0.018628180027008,-0.032623052597046,-0.042558118700981,-0.026878198608756,-0.056953266263008,0.045028660446405,-0.149931833148003,0.023340746760368,0.107784695923328,-0.040426537394524,0.025143347680569,0.095727093517780) * MODEL4_texOff(vec2(0,1));
res += mat4(0.054334282875061,-0.037761937826872,0.018969528377056,0.077178396284580,-0.013410032726824,-0.019932609051466,0.002664837287739,-0.213781446218491,-0.012178365141153,0.025110403075814,-0.028661655262113,0.012238644063473,-0.108884423971176,-0.203371956944466,0.031798642128706,0.082660041749477) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.042750436812639,-0.118937127292156,0.089408650994301,0.018785890191793,-0.129387021064758,0.083334662020206,0.014756277203560,-0.104300297796726,0.061841163784266,-0.043832790106535,0.035426251590252,0.025620162487030,-0.015825202688575,-0.071188442409039,0.009839310310781,0.000095074210549) * MODEL4_texOff(vec2(1,0));
res += mat4(0.010311981663108,-0.006573880556971,0.002019340405241,-0.044281210750341,-0.024663027375937,0.172320917248726,0.006639060098678,-0.040406003594398,-0.076242752373219,0.050289601087570,-0.052608184516430,-0.078330188989639,-0.010050349868834,0.071567542850971,-0.031492926180363,0.021497720852494) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.074649177491665,0.014784526079893,-0.013543633744121,-0.052962914109230,0.031713481992483,-0.097610712051392,-0.007145220879465,0.066323429346085,-0.043352559208870,-0.109510041773319,-0.060840174555779,-0.000615320808720,-0.002203016309068,0.008885445073247,-0.007062423974276,-0.015009867027402) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.022699253633618,0.094587557017803,0.089948654174805,-0.099132806062698,0.032936263829470,-0.065585307776928,0.003464687149972,-0.085277788341045,0.001335220411420,0.120543599128723,-0.111570909619331,-0.056931473314762,-0.005493516568094,0.008555430918932,-0.000687877880409,-0.007759174332023) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.023139258846641,-0.042048186063766,-0.018642190843821,0.075119301676750,0.081112422049046,-0.096397809684277,0.049774222075939,0.014187739230692,-0.052652824670076,0.005684744101018,-0.077044136822224,0.051461383700371,-0.007061119657010,-0.000490528240334,-0.005679977592081,-0.001262803445570) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.049005206674337,0.001243178383447,-0.019841609522700,-0.012526000849903,-0.072196647524834,-0.121654719114304,-0.004625523462892,-0.092859178781509,0.003164636436850,0.019275151193142,-0.053577680140734,0.074432261288166,0.002337987534702,0.002933003939688,0.002488027093932,-0.011651116423309) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.127290382981300,-0.023662159219384,0.085617385804653,0.050750903785229,-0.004177722614259,-0.035118434578180,0.056589510291815,0.144346222281456,0.161870494484901,-0.156794443726540,-0.145816490054131,0.136939629912376,-0.005278021097183,0.002500775037333,0.003368554869667,-0.009348748251796) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.079738393425941,0.219186633825302,-0.013074378482997,-0.058962780982256,0.063928171992302,0.151593446731567,-0.019282901659608,0.064784646034241,0.010616389103234,0.088726475834846,-0.132639184594154,-0.016443438827991,-0.011237090453506,-0.006698741577566,-0.001470177317970,0.007190328091383) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.000027478195989,0.024881873279810,0.022966643795371,0.077640205621719,0.092230468988419,-0.051641650497913,-0.104587227106094,-0.171010151505470,0.018929300829768,0.116792380809784,0.010001821443439,-0.008397091180086,0.001696676248685,0.007876997813582,0.004338337108493,-0.010552378371358) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.002683655591682,-0.005075089167804,0.001807342865504,-0.023742046207190,0.011713718064129,-0.149230599403381,0.036752305924892,0.002295728540048,0.010731823742390,-0.034659788012505,0.018969897180796,-0.027287466451526,0.000840510881972,0.000889882794581,0.003896598704159,-0.003965439274907) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.067690618336201,-0.026074968278408,-0.030220095068216,-0.078197129070759,-0.002765412908047,-0.056483905762434,0.053022127598524,0.086732067167759,0.054423291236162,0.164535790681839,0.009079183451831,0.096852242946625,-0.009849629364908,-0.001107748248614,0.000304598506773,0.009233933873475) * MODEL5_texOff(vec2(1,1));
res += mat4(0.038311753422022,0.070015966892242,-0.079469949007034,0.059112656861544,-0.027250833809376,-0.026827987283468,0.078527130186558,-0.016852715983987,0.051793307065964,0.009108697064221,0.000852914468851,-0.167537465691566,0.051312554627657,0.057396277785301,0.017511490732431,0.035589370876551) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.062934018671513,-0.232024371623993,-0.055001847445965,0.069087572395802,-0.065577134490013,0.035534802824259,0.006458416581154,0.000270263350103,-0.109361104667187,0.066328339278698,-0.029088648036122,-0.223492637276649,0.127287507057190,-0.214537844061852,0.012721246108413,0.084318622946739) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.108078308403492,-0.199546396732330,0.009695919230580,-0.071643993258476,0.042157728224993,0.001577266142704,-0.051216207444668,-0.033156279474497,-0.036443319171667,0.064403653144836,-0.040176276117563,-0.191562265157700,-0.106182493269444,0.029883384704590,0.014363753609359,-0.055320538580418) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.014460314996541,0.029238868504763,0.015572112053633,0.065183274447918,-0.003315629670396,0.051354236900806,0.061695888638496,-0.082725048065186,0.074287503957748,0.044053725898266,-0.053365059196949,0.009088539518416,0.111997865140438,0.090897247195244,-0.072645381093025,-0.039265718311071) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.082895629107952,-0.021446492522955,0.017316365614533,-0.121836252510548,0.039933051913977,0.046413373202085,0.095144219696522,-0.000986210186966,0.105518609285355,0.063780255615711,-0.191632598638535,-0.256004750728607,-0.204340189695358,0.091651223599911,-0.019799044355750,-0.081375002861023) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.002394808921963,-0.047530505806208,0.004843438044190,0.079109579324722,0.035213198512793,-0.033655058592558,0.130654633045197,-0.012428250163794,0.100084021687508,0.027767406776547,0.041076365858316,-0.025434449315071,0.105946041643620,-0.220054358243942,0.001651704544201,-0.028907135128975) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.057067036628723,-0.053467251360416,-0.007093603722751,-0.156440317630768,0.025848757475615,0.035401258617640,0.029463356360793,-0.117629118263721,0.076028212904930,-0.074595429003239,-0.008616778999567,-0.093856960535049,-0.196938335895538,-0.025315787643194,-0.108872763812542,-0.051830891519785) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.010577535256743,0.041069258004427,0.012311258353293,-0.051856651902199,0.033009730279446,0.003459382802248,0.010924288071692,-0.044271118938923,0.091820575296879,0.030426440760493,0.002815532730892,-0.006462548859417,0.143106803297997,0.093809112906456,0.025532208383083,-0.006700135301799) * MODEL6_texOff(vec2(1,0));
res += mat4(0.016040105372667,-0.049738518893719,0.021101871505380,-0.036431256681681,-0.003110155696049,0.015457393601537,0.057340495288372,-0.069685518741608,-0.049952846020460,-0.147490575909615,-0.042984977364540,0.021204499527812,0.052055042237043,0.122766330838203,-0.018469350412488,-0.045110616832972) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.009258037433028,0.223793223500252,-0.007339272182435,0.149977341294289) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_4x_Photo] mapping 3_1

vec4 hook()
{
vec4 res = vec4(0.010567168705165,0.122964717447758,0.158009633421898,0.049514468759298);
res += mat4(-0.046126939356327,0.079846709966660,-0.018612448126078,-0.012160442769527,0.023314230144024,-0.121063612401485,0.109430894255638,-0.023776149377227,-0.033723458647728,0.024118097499013,-0.072482250630856,-0.026968168094754,-0.102483294904232,0.201736181974411,0.006500343792140,-0.059257905930281) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.019483787938952,0.012383533641696,0.032265812158585,-0.202088207006454,0.242862701416016,0.003751449752599,0.112736001610756,0.017694694921374,0.070856645703316,0.106907680630684,-0.022014858201146,0.040149677544832,0.047432843595743,0.071981541812420,0.069005556404591,0.007118039298803) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.026542013511062,0.026346022263169,0.028968876227736,-0.055784720927477,0.131000727415085,0.197488486766815,-0.027392655611038,0.076891966164112,0.038490779697895,0.084255844354630,0.011278077960014,0.093834057450294,0.079596959054470,0.154139772057533,0.059675291180611,-0.095526345074177) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.067751705646515,-0.193538129329681,0.033699862658978,-0.171602904796600,0.115776576101780,-0.042918246239424,0.013759777881205,-0.187292143702507,0.029178144410253,-0.049573358148336,0.072665899991989,0.073934219777584,-0.023035516962409,0.044701691716909,-0.027768358588219,-0.015900332480669) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.025036856532097,0.089280992746353,-0.060200884938240,-0.214633166790009,0.208056196570396,-0.006715469062328,-0.016226535663009,-0.026681590825319,0.105811081826687,-0.102744489908218,-0.012490677647293,0.020159924402833,0.165193468332291,0.035938847810030,0.018447473645210,-0.088388755917549) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.045909952372313,-0.032719578593969,-0.044219445437193,0.086067073047161,0.048542223870754,0.172314688563347,-0.047833338379860,0.060299403965473,0.048210378736258,0.062027439475060,0.033454984426498,0.029375750571489,-0.034338925033808,0.050719492137432,0.090981133282185,-0.108649484813213) * MODEL7_texOff(vec2(0,1));
res += mat4(0.028668753802776,-0.032650601118803,-0.033934291452169,-0.286906182765961,0.034214332699776,0.002050470793620,0.013079596683383,-0.082833416759968,0.040615145117044,0.094515025615692,0.016323296353221,0.146909818053246,0.047722984105349,0.099220275878906,0.059416245669127,-0.162315040826797) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.104686863720417,-0.009036581963301,-0.085059948265553,-0.244100674986839,-0.084848821163177,0.053315725177526,0.059514101594687,0.026871284469962,0.082178704440594,0.028415208682418,-0.001781021011993,0.150538489222527,0.039207283407450,0.055126544088125,-0.038858391344547,-0.101472362875938) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.029496911913157,-0.005572796799242,-0.018243931233883,0.072919405996799,-0.003104362636805,-0.017331985756755,0.012427642010152,0.152287825942039,0.039695780724287,-0.026510654017329,-0.000466862140456,0.001122273388319,0.025930248200893,-0.023359177634120,0.042176485061646,-0.040833037346601) * MODEL7_texOff(vec2(1,1));
res += mat4(0.099562898278236,-0.258908241987228,0.019842011854053,-0.553142488002777,-0.028363177552819,-0.024115582928061,-0.074244394898415,-0.012913384474814,-0.140217646956444,0.072369948029518,0.105816677212715,-0.035047061741352,-0.036095313727856,-0.227130755782127,-0.006537994369864,0.035974644124508) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.008023246191442,-0.423386871814728,-0.207945138216019,-0.025280194357038,-0.013414513319731,0.149399608373642,-0.062814705073833,0.099909268319607,0.058504879474640,-0.107596471905708,-0.184803888201714,0.004897183272988,0.013989401049912,-0.283616364002228,-0.141625076532364,-0.020934363827109) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.021486178040504,-0.071676656603813,-0.012301177717745,0.040935836732388,0.022174665704370,0.008205276913941,0.045192457735538,0.076684005558491,-0.148440077900887,-0.070343472063541,-0.458711296319962,-0.043460108339787,0.001764953718521,-0.014351124875247,-0.016749331727624,-0.004022138193250) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.084511697292328,-0.576369047164917,0.025335544720292,-0.485869944095612,0.072922416031361,-0.208200126886368,-0.176387280225754,0.056791108101606,-0.107086881995201,0.066778652369976,0.086532026529312,0.120029151439667,-0.083682581782341,-0.188544601202011,-0.155947551131248,-0.059073071926832) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.041888151317835,-0.281838327646255,-0.186487495899200,-0.254976272583008,-0.052125886082649,-0.111865945160389,0.106915928423405,0.106790259480476,-0.081614635884762,0.080114677548409,0.035558868199587,0.008600484579802,-0.138508349657059,-0.237157747149467,-0.213665232062340,0.044378567487001) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.073012143373489,-0.154143437743187,0.027873961254954,0.086659006774426,0.077171079814434,-0.044312026351690,0.004952063784003,0.057915892452002,-0.116928599774837,-0.053205545991659,-0.139899626374245,-0.022937934845686,-0.040027476847172,-0.130573123693466,0.027544669806957,0.077319197356701) * MODEL8_texOff(vec2(0,1));
res += mat4(0.008325677365065,-0.206354767084122,0.017424339428544,-0.245693296194077,0.097279019653797,-0.139626637101173,-0.012259180657566,0.135157763957977,0.031795792281628,0.103438660502434,0.051720116287470,0.028347948566079,-0.053924918174744,-0.146508485078812,-0.079968243837357,0.051924243569374) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.026247180998325,0.120922163128853,-0.047560453414917,-0.322852849960327,-0.085487224161625,0.015516115352511,0.097275085747242,0.144338712096214,-0.048553537577391,-0.079722434282303,0.006242457311600,0.102763779461384,-0.058648202568293,-0.205581188201904,-0.155613169074059,0.000982425292023) * MODEL8_texOff(vec2(1,0));
res += mat4(0.023280117660761,0.064100615680218,0.040519569069147,0.099577739834785,-0.051885712891817,-0.012302205897868,-0.036528281867504,-0.114490762352943,-0.119554691016674,0.023189282044768,-0.034477304667234,0.059911917895079,-0.140302553772926,-0.274243772029877,-0.080993711948395,0.053209684789181) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.039808694273233,0.071676596999168,-0.127570271492004,0.135568022727966,-0.077567964792252,-0.111630767583847,-0.003773802891374,0.082901135087013,0.044631667435169,0.098272278904915,0.069635629653931,-0.094185352325439,0.013204392045736,0.028437415137887,0.011242773383856,0.016482928767800) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.217364698648453,0.005505273584276,-0.017529923468828,0.042846221476793,-0.212947234511375,-0.015050150454044,-0.223280429840088,0.150483191013336,-0.099975556135178,0.259541124105453,0.070760525763035,0.054925724864006,0.062509581446648,-0.048190612345934,-0.054012730717659,-0.101562462747097) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.023486213758588,-0.078777141869068,-0.048779062926769,-0.084690533578396,-0.123383261263371,-0.240173771977425,-0.228284880518913,-0.044151518493891,0.018628254532814,0.080107443034649,-0.124665647745132,-0.007376812864095,-0.143736302852631,0.148259535431862,0.052471388131380,0.119530633091927) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.022854082286358,-0.044902421534061,-0.066107451915741,0.033748704940081,-0.112227618694305,-0.253512680530548,-0.042345445603132,-0.093089453876019,0.005184373818338,-0.006777750328183,0.008575398474932,-0.025398585945368,0.076609410345554,-0.059271622449160,0.067608460783958,-0.014806460589170) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.197787001729012,0.079454995691776,0.020562460646033,0.033940609544516,-0.219395756721497,-0.256557613611221,0.171688541769981,-0.075859710574150,-0.021095216274261,-0.049726206809282,0.069416373968124,0.152929067611694,0.059306669980288,-0.195357203483582,0.108485341072083,-0.046951059252024) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.013291238807142,-0.041779257357121,-0.088643886148930,0.001174728269689,-0.238971680402756,-0.129182934761047,-0.517607867717743,-0.125587657094002,-0.101416975259781,0.143284007906914,0.011181504465640,-0.053980167955160,0.125956609845161,0.108729682862759,0.298852205276489,0.094209946691990) * MODEL9_texOff(vec2(0,1));
res += mat4(0.037647411227226,-0.050989683717489,-0.078686416149139,0.054368540644646,-0.014979053288698,0.094074346125126,-0.023712277412415,-0.034851938486099,-0.005966810509562,-0.191351190209389,0.002514490392059,-0.038011830300093,-0.080797240138054,0.000640104350168,-0.074044354259968,0.055878613144159) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.029576770961285,0.057770237326622,0.088190048933029,-0.027916690334678,-0.126720935106277,0.044337879866362,-0.074108533561230,-0.016621010378003,-0.038835193961859,-0.106918655335903,0.118987306952477,0.084188535809517,0.038578812032938,-0.114065721631050,-0.056608818471432,-0.031967390328646) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.046903654932976,0.004212551284581,-0.021216457709670,0.087820328772068,-0.167009040713310,-0.077253758907318,-0.201822802424431,-0.005897966213524,-0.173040449619293,-0.024117644876242,0.017826285213232,0.009148365817964,-0.220484033226967,0.026023218408227,-0.076850228011608,0.125556513667107) * MODEL9_texOff(vec2(1,1));
res += mat4(0.030667912214994,0.051458731293678,-0.048817802220583,0.031355559825897,0.028676945716143,0.198328644037247,0.061129208654165,-0.103011086583138,0.001569319283590,0.041323944926262,-0.012212662957609,-0.000944836006965,0.046506728976965,-0.014024578966200,-0.000913892989047,-0.098814725875854) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.051967062056065,0.084534637629986,-0.090933322906494,0.000642386381514,0.000997230410576,-0.030873611569405,-0.005746726412326,0.022466149181128,-0.049869235605001,-0.055783614516258,-0.029314413666725,0.005906788632274,0.012096827849746,-0.160269588232040,-0.047595780342817,-0.096277549862862) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.009629604406655,-0.022744806483388,-0.106857486069202,-0.037123270332813,-0.036231577396393,-0.184088990092278,0.048629790544510,0.135459035634995,0.025938294827938,0.108982577919960,0.004305775277317,0.025714121758938,-0.059688061475754,-0.198656916618347,0.022281140089035,-0.037557974457741) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.058298017829657,-0.016789244487882,-0.188583984971046,-0.223195180296898,-0.060358669608831,-0.126406878232956,-0.042698767036200,-0.093751110136509,0.023503381758928,-0.174656510353088,-0.135955587029457,0.032077789306641,0.082804366946220,-0.044087741523981,0.022723840549588,-0.106017857789993) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.299528628587723,-0.057249363511801,0.023305535316467,0.123578317463398,0.206897333264351,-0.302528649568558,-0.102064102888107,-0.039046220481396,-0.100922539830208,-0.143283307552338,-0.178999111056328,0.068169340491295,0.075868614017963,-0.324241697788239,-0.033437918871641,-0.067251287400723) * MODEL10_texOff(vec2(0,0));
res += mat4(0.259337127208710,0.027928996831179,-0.094825282692909,-0.095101296901703,-0.028728391975164,-0.034792862832546,0.005861040670425,0.032779503613710,0.162030011415482,0.056166987866163,0.008292639628053,0.032733157277107,-0.000708741834387,-0.385289847850800,-0.117314249277115,0.016798179596663) * MODEL10_texOff(vec2(0,1));
res += mat4(0.045746356248856,0.025886597111821,-0.093140728771687,0.049482762813568,0.006342993583530,-0.249283388257027,0.049030188471079,0.018217654898763,0.031279720366001,-0.126056432723999,-0.131799384951591,0.093846514821053,-0.033535100519657,-0.090172424912453,0.081034004688263,0.030301483348012) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.006088064052165,-0.106690838932991,0.087751172482967,0.147471010684967,-0.057875402271748,-0.155222773551941,0.154840052127838,0.049569137394428,-0.053396593779325,0.031014693900943,-0.142687141895294,0.076147787272930,-0.110559768974781,0.125572055578232,-0.036760862916708,-0.423994153738022) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.042096860706806,0.074090346693993,-0.069003373384476,-0.023398334160447,0.035866577178240,-0.078470900654793,-0.053780272603035,0.069573327898979,0.189035490155220,0.003509082365781,-0.063763566315174,-0.052838157862425,-0.150485470890999,-0.042300507426262,-0.066700711846352,-0.004976897034794) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.114075750112534,-0.152636215090752,-0.008658327162266,0.111472964286804,0.105356976389885,0.009456275962293,0.002218808745965,0.082938238978386,-0.025083620101213,0.077715113759041,0.013390870764852,-0.013669177889824,-0.038221146911383,0.025970337912440,0.079191386699677,0.044105052947998) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.059029318392277,0.027790222316980,-0.397354185581207,-0.284677773714066,0.053060263395309,0.120824389159679,-0.040149655193090,0.120651185512543,-0.000295535573969,0.107070110738277,0.075885787606239,0.046069573611021,0.026550678536296,0.166484653949738,-0.059510946273804,-0.097405038774014) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.111490927636623,-0.012433612719178,-0.042498454451561,-0.043605480343103,0.086324237287045,-0.055394671857357,0.047797299921513,-0.026170283555984,0.001896134461276,0.095947571098804,0.048072997480631,0.090366229414940,-0.038824569433928,-0.031219031661749,0.068688303232193,0.000598776969127) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.176461338996887,-0.184534877538681,0.048047903925180,-0.148438930511475,0.086697548627853,0.011081395670772,-0.064028754830360,0.086677663028240,-0.024282924830914,0.104113459587097,-0.003919712733477,0.048418898135424,-0.018455259501934,-0.279814898967743,0.012906077317894,0.023137642070651) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.245306655764580,0.377945870161057,0.092265680432320,-0.545283019542694,0.084103189408779,-0.199157923460007,0.003266754560173,0.121528804302216,0.030687628313899,0.087510392069817,0.085255794227123,-0.123370885848999,0.029789781197906,-0.078596539795399,-0.031011065468192,0.021495888009667) * MODEL11_texOff(vec2(0,0));
res += mat4(0.090830206871033,0.247651413083076,-0.003406682750210,0.187698721885681,0.110885366797447,0.014002101495862,0.074969261884689,0.042664419859648,-0.015119537711143,0.008107493631542,0.097074367105961,0.053085230290890,0.027383700013161,-0.028125526383519,0.052228767424822,0.018788075074553) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.023173311725259,0.056818690150976,0.001814499148168,-0.024741640314460,0.080570310354233,0.229001596570015,-0.034879438579082,0.047962572425604,0.127938747406006,0.082422569394112,0.083872832357883,0.110577560961246,-0.021948294714093,0.114509083330631,0.137842088937759,0.052721265703440) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.047171954065561,0.275875866413116,0.048977863043547,0.007714677136391,0.017457086592913,0.033130899071693,0.005184208974242,0.032126929610968,-0.079424381256104,-0.106954380869865,0.033842563629150,-0.018962135538459,-0.011427390389144,0.149873018264771,0.098646380007267,-0.032893173396587) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.038634374737740,0.017859695479274,0.060390457510948,0.218538671731949,0.023260302841663,-0.027201315388083,0.045632362365723,0.050598025321960,0.115090548992157,-0.073357224464417,-0.014499044045806,-0.049667440354824,0.000473460822832,0.050865396857262,0.048879120498896,-0.063591651618481) * MODEL11_texOff(vec2(1,1));
res += mat4(0.024153741076589,-0.052634160965681,-0.126706823706627,0.050798062235117,-0.007194573059678,0.011575044132769,0.008099270984530,-0.024833440780640,0.033782020211220,-0.122360564768314,-0.005081841722131,-0.032517563551664,0.122262045741081,0.130201995372772,0.088760666549206,-0.004037247039378) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.060838431119919,0.118102639913559,-0.081025831401348,-0.003089183010161,-0.012275672517717,0.063974604010582,-0.161297410726547,0.086975835263729,0.035127326846123,-0.102278590202332,0.109012439846992,0.000301998545183,-0.180635139346123,0.016263861209154,0.123550452291965,-0.027939096093178) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.080866493284702,-0.017184922471642,-0.010411523282528,0.005822555627674,-0.112313173711300,-0.034139376133680,-0.112448513507843,-0.015007692389190,0.079839661717415,0.121593371033669,-0.082989893853664,0.082799933850765,0.092204824090004,-0.016422364860773,0.080237314105034,0.036034595221281) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.005519669968635,-0.169476777315140,0.047042347490788,-0.019030751660466,0.129558086395264,-0.098666541278362,-0.097322754561901,-0.008738776668906,0.012100319378078,-0.040907822549343,0.016283901408315,-0.041056156158447,-0.054563391953707,-0.088643662631512,0.044317834079266,-0.103871718049049) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.193301707506180,-0.074644431471825,0.542891681194305,-0.043219454586506,-0.007500946521759,0.111760199069977,-0.222792699933052,-0.048829983919859,0.099663600325584,-0.009445600211620,0.124126255512238,-0.070367731153965,-0.000993054010905,0.155545949935913,0.234912961721420,0.020119765773416) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.145147487521172,-0.030826359987259,0.022897420451045,-0.055733814835548,0.078928522765636,-0.134323686361313,-0.051919337362051,0.014529983513057,-0.075414456427097,0.117695562541485,0.061455864459276,0.086393371224403,0.163643002510071,-0.077940009534359,-0.125308424234390,-0.065281078219414) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.018553761765361,-0.187569186091423,0.052602816373110,-0.068586029112339,-0.009649822488427,0.068953439593315,0.000102642872662,-0.045537527650595,0.069066599011421,-0.006390852387995,-0.062807023525238,-0.036799550056458,-0.034999281167984,-0.088770635426044,0.052453145384789,-0.049448922276497) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.060021378099918,0.052125293761492,0.105224736034870,-0.043206553906202,0.072003230452538,0.090375080704689,-0.127704635262489,-0.177044734358788,0.052398495376110,0.108264893293381,-0.011515079066157,-0.095001406967640,-0.061107125133276,-0.094695605337620,-0.129003062844276,0.110276579856873) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.063417054712772,0.027208281680942,0.014837358146906,-0.015653340145946,-0.081135146319866,0.016898583620787,-0.032464191317558,0.038756325840950,0.011113136075437,0.116831623017788,0.024888219311833,0.114019379019737,0.041994038969278,-0.130017265677452,0.054104812443256,-0.001975387567654) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.612052261829376,-0.000785438984167,0.055477462708950,-0.018414886668324) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_4x_Photo] mapping 3_2

vec4 hook()
{
vec4 res = vec4(-0.284672349691391,0.019684210419655,0.104129306972027,-0.061281338334084);
res += mat4(0.020180057734251,-0.047074232250452,-0.017396179959178,-0.019179517403245,0.012078708969057,0.104411154985428,0.021111227571964,-0.029229328036308,0.044952061027288,-0.235497564077377,0.022788750007749,0.030021721497178,0.157790482044220,0.217657566070557,0.039505988359451,0.027988575398922) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.033316861838102,-0.045213729143143,-0.015170093625784,0.003884742734954,-0.049441136419773,-0.044845797121525,-0.004424042999744,0.029066264629364,-0.067199185490608,-0.048479575663805,0.006491099018604,0.038646541535854,0.010316201485693,-0.117625698447227,0.004854589700699,-0.002672599162906) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.059249363839626,-0.034129586070776,-0.050579283386469,-0.026288328692317,-0.090596921741962,-0.194208651781082,0.325110137462616,-0.051518350839615,0.019918020814657,-0.265656143426895,-0.231281369924545,0.004089612513781,-0.014234701171517,0.063977688550949,0.014120878651738,-0.042861007153988) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.032241217792034,-0.060122508555651,-0.049641828984022,0.023649988695979,0.104729086160660,-0.058392070233822,0.033983241766691,-0.021024247631431,0.036822054535151,-0.194459393620491,-0.067319840192795,0.048499401658773,0.007074410095811,-0.160715267062187,-0.029188338667154,-0.012277310714126) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.100600808858871,-0.002589466748759,-0.053301800042391,0.027921164408326,0.263601154088974,0.013589943759143,0.177685886621475,-0.053745578974485,0.076181173324585,0.024594932794571,-0.062329981476068,0.023866852745414,-0.141161099076271,0.167403250932693,0.057303261011839,-0.001290728454478) * MODEL7_texOff(vec2(0,0));
res += mat4(0.068805761635303,0.075428716838360,0.000917557161301,-0.003409974975511,0.056815337389708,0.064139805734158,-0.118025377392769,-0.070724345743656,-0.007434118539095,-0.042871568351984,-0.152274832129478,0.072025813162327,0.032811950892210,0.095526449382305,-0.029605694115162,-0.052675895392895) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.053175680339336,0.073116488754749,0.003092999570072,0.022712584584951,-0.018096197396517,-0.024771191179752,-0.050013661384583,0.013249837793410,-0.042362034320831,-0.100943535566330,-0.125071749091148,0.010381791740656,-0.029845224693418,-0.038735967129469,0.006033954676241,0.027643976733088) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.053076058626175,0.008142723701894,0.160590246319771,0.017810752615333,0.047408398240805,0.057408392429352,0.131934225559235,-0.007739498279989,-0.035321511328220,-0.129248723387718,-0.097255907952785,0.020388064906001,-0.105945132672787,0.145648255944252,-0.017748804762959,-0.006383589003235) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.043347805738449,0.018346413969994,-0.067740395665169,-0.021307474002242,0.026804815977812,0.018960297107697,-0.025376219302416,-0.040831442922354,-0.014409691095352,-0.094427503645420,-0.073232516646385,0.075453169643879,-0.086394242942333,0.097269892692566,0.093819931149483,-0.042468897998333) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.022288339212537,-0.187028989195824,-0.029198460280895,-0.006743264384568,-0.023180888965726,0.009061217308044,-0.021760150790215,0.020269189029932,-0.053298775106668,-0.041160885244608,0.076518654823303,0.025557644665241,-0.051451336592436,-0.069153510034084,0.060832619667053,0.038441024720669) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.066570907831192,-0.116924345493317,0.148575618863106,-0.044511709362268,0.008136589080095,-0.144180476665497,0.132480368018150,0.026389610022306,0.104867629706860,-0.088170245289803,-0.002033281838521,0.040528398007154,0.019434230402112,0.050407543778419,-0.020859079435468,0.034513786435127) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.032600607722998,-0.163939118385315,-0.185047268867493,-0.028623128309846,-0.088263794779778,0.075831957161427,0.027138641104102,-0.010614830069244,0.011801904998720,0.131067141890526,0.147534698247910,-0.052116394042969,0.088392511010170,0.072923846542835,0.017757190391421,0.006526552140713) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.057814016938210,0.000809716118965,-0.050390526652336,-0.010523200035095,-0.079502195119858,0.069118440151215,0.047769762575626,0.032061230391264,-0.140269890427589,-0.016135687008500,-0.041990406811237,0.007972299121320,0.032655902206898,0.017453858628869,-0.091961354017258,0.026760345324874) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.019491219893098,0.057040508836508,0.018584508448839,-0.030821839347482,0.072954468429089,0.058060392737389,0.280459761619568,-0.061364673078060,0.017020713537931,0.018593829125166,0.203918889164925,-0.059234149754047,-0.006804934702814,-0.007997440174222,-0.028633877635002,-0.015317936427891) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.020980261266232,-0.178514957427979,-0.308414876461029,-0.000434610963566,0.026558412238955,0.042910538613796,0.090336434543133,0.038741916418076,0.081275120377541,-0.052621733397245,0.011074516922235,-0.050670199096203,-0.015257098712027,0.014416459947824,-0.083994895219803,0.010067526251078) * MODEL8_texOff(vec2(0,1));
res += mat4(0.019943062216043,-0.044019564986229,-0.031913615763187,-0.009325041435659,0.028930239379406,0.290918767452240,0.065204121172428,-0.016259307041764,-0.019667692482471,-0.047690026462078,0.051532395184040,-0.027329156175256,0.058016784489155,-0.028259640559554,-0.046273320913315,0.020641585811973) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.015393969602883,0.007242126390338,0.043245680630207,-0.002560378052294,0.082365691661835,0.080113358795643,0.062786556780338,-0.064862929284573,0.028949152678251,0.116600036621094,-0.035180222243071,0.006103664636612,0.159381642937660,0.130289345979691,-0.027275459840894,0.010962860658765) * MODEL8_texOff(vec2(1,0));
res += mat4(0.119875721633434,-0.119426079094410,-0.245311766862869,-0.016050927340984,-0.047899220138788,-0.013187526725233,-0.000339712365530,0.002972809830680,-0.029417892917991,-0.047704450786114,-0.068582206964493,-0.020620146766305,0.090978473424911,-0.034849535673857,-0.012452255934477,0.043795362114906) * MODEL8_texOff(vec2(1,1));
res += mat4(0.001847179722972,-0.203498795628548,-0.004447696730494,0.025453671813011,-0.011901406571269,-0.053967710584402,-0.040236368775368,0.038134928792715,0.001303095952608,0.203340321779251,0.042780529707670,0.004464219324291,-0.041051004081964,0.014623052440584,-0.000041771523684,-0.068388447165489) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.144706979393959,0.292825639247894,0.019378434866667,-0.014023724012077,0.004285224713385,-0.124930225312710,-0.015682784840465,0.036495279520750,0.016857033595443,-0.096091344952583,0.018640171736479,-0.103575892746449,-0.031036259606481,-0.069067478179932,0.065729059278965,-0.071972444653511) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.099670767784119,-0.081294298171997,-0.200008973479271,-0.031536187976599,0.029262235388160,-0.159079551696777,-0.175202146172523,0.005812477320433,0.002778864465654,0.011436062864959,-0.033283319324255,0.023044424131513,-0.008749142289162,0.056173585355282,0.059858832508326,0.034120317548513) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.024078235030174,-0.075094677507877,0.055288415402174,0.077236317098141,0.033363495022058,-0.052440103143454,0.085904955863953,-0.001196412835270,-0.015986256301403,-0.054855406284332,0.025276714935899,-0.012574922293425,0.017811149358749,-0.060892026871443,-0.042747158557177,-0.013261924497783) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.133641600608826,0.215460434556007,-0.018411090597510,-0.012750468216836,0.157569050788879,-0.071156285703182,0.036593053489923,0.064883328974247,0.035844765603542,-0.138559177517891,-0.020687911659479,-0.067842572927475,0.262174904346466,-0.129651591181755,-0.080807030200958,0.087106384336948) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.132793173193932,0.046892803162336,-0.089195586740971,-0.054380033165216,0.127573356032372,-0.038482453674078,-0.089574865996838,0.016887934878469,0.039884548634291,0.063721790909767,0.020829344168305,-0.017875950783491,0.015075540170074,0.139197975397110,0.009511857293546,0.038123484700918) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.000334073556587,0.071039415895939,-0.064471259713173,-0.007567185442895,0.014093867503107,-0.008850668556988,0.060450445860624,-0.030598267912865,-0.028756754472852,0.187389463186264,0.026888785883784,0.016869105398655,-0.035991199314594,-0.001383361057378,0.029803005978465,0.049968719482422) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.048278447240591,-0.019549448043108,-0.107442326843739,-0.009083588607609,0.076571382582188,-0.035262957215309,-0.060325451195240,-0.074661582708359,-0.120323948562145,-0.098908968269825,-0.127168610692024,-0.031738817691803,0.030557384714484,-0.052862465381622,-0.035765979439020,-0.025144631043077) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.028697801753879,0.047621835023165,-0.002924161264673,-0.056975018233061,-0.000382368860301,0.015439387410879,-0.080032393336296,-0.031478993594646,-0.040868896991014,0.002804685849696,-0.070489212870598,0.002386184874922,-0.041490681469440,-0.022376159206033,0.016893971711397,0.045615542680025) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.010583471506834,-0.081459574401379,-0.060321558266878,-0.032061036676168,-0.073487386107445,0.079114764928818,-0.075402334332466,0.026934238150716,-0.022792104631662,0.054442379623652,0.022783923894167,-0.049239657819271,0.012566654011607,0.019162373617291,-0.085996814072132,0.061606813222170) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.031569827347994,0.085091799497604,-0.046835932880640,0.039535328745842,-0.002042207866907,-0.144903063774109,-0.288594424724579,-0.001359100686386,-0.010334513150156,-0.186764687299728,0.061107538640499,-0.027976129204035,0.036193966865540,0.056243751198053,0.025179535150528,0.060667656362057) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.008722077123821,-0.043419662863016,-0.068417966365814,-0.029511895030737,-0.007942322641611,0.074432268738747,-0.116587899625301,0.015566218644381,-0.073158510029316,0.066232763230801,0.053804870694876,0.030848113819957,0.042578287422657,0.047143448144197,-0.218720600008965,-0.004234162624925) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.148500457406044,0.286390095949173,0.049005430191755,0.047889426350594,0.013094699941576,-0.067019596695900,-0.015830777585506,0.012473575770855,0.036581199616194,0.092057175934315,0.037604518234730,-0.009400837123394,0.066385805606842,0.005668982863426,-0.048000536859035,0.040773279964924) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.128133505582809,-0.163497045636177,-0.120389647781849,0.060666482895613,-0.046560954302549,-0.224960401654243,-0.126316979527473,0.005695881787688,0.181044325232506,-0.070246018469334,0.042450509965420,-0.036766778677702,0.020288404077291,0.254147827625275,-0.025803452357650,0.004111163783818) * MODEL10_texOff(vec2(0,0));
res += mat4(0.006370985880494,-0.037375364452600,-0.187286987900734,0.011747603304684,0.053435571491718,0.192651480436325,-0.006663385313004,0.017165303230286,-0.031466022133827,0.055131718516350,0.080748736858368,0.053184174001217,0.068134531378746,-0.146292299032211,-0.230344906449318,-0.013005132786930) * MODEL10_texOff(vec2(0,1));
res += mat4(0.052273694425821,0.219281584024429,0.040506843477488,-0.020769692957401,-0.025219988077879,0.112411104142666,-0.100056670606136,-0.001348130288534,0.069226294755936,0.123865328729153,0.001883429940790,-0.012621113099158,-0.065381631255150,0.080641858279705,0.006107017397881,0.015996323898435) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.015535308979452,-0.221072480082512,-0.134211584925652,-0.015241634100676,-0.018274784088135,-0.277640342712402,-0.065715633332729,-0.051618240773678,0.171213641762733,0.142663732171059,0.108581632375717,0.053485963493586,-0.040239907801151,0.075979910790920,0.013099395669997,0.056931678205729) * MODEL10_texOff(vec2(1,0));
res += mat4(0.018734887242317,0.034847427159548,0.012036384083331,0.069209583103657,0.016127826645970,0.052401952445507,0.113620638847351,-0.004093765281141,-0.023926837369800,0.030594123527408,0.011387464590371,0.033436741679907,0.080547921359539,-0.154441908001900,-0.108521297574043,0.026466051116586) * MODEL10_texOff(vec2(1,1));
res += mat4(0.012540322728455,-0.208369836211205,0.058913487941027,-0.025665123015642,0.010808554477990,0.076481990516186,0.005919174756855,0.007183762732893,-0.022854335606098,0.127327427268028,0.054957531392574,0.063195675611496,0.018998749554157,-0.313329249620438,-0.074349321424961,0.056231811642647) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.184235662221909,0.267565310001373,0.102541506290436,-0.018076593056321,-0.197642728686333,-0.156197816133499,-0.047047585248947,-0.026048764586449,0.041712265461683,0.022156549617648,-0.011262673884630,0.002870851196349,-0.026402093470097,0.003195393830538,0.090590514242649,0.074640996754169) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.001598364207894,-0.090190798044205,-0.493428677320480,0.020570352673531,-0.174990311264992,0.090236075222492,0.026295579969883,0.048565443605185,0.063271835446358,0.073893129825592,-0.096246622502804,-0.010795244015753,-0.060596641153097,-0.227974534034729,-0.170594662427902,0.015786023810506) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.032984901219606,0.045947447419167,0.084022670984268,0.019253119826317,-0.008343174122274,0.079984776675701,0.047378513962030,0.010799014009535,-0.049322754144669,-0.026438079774380,0.010007514618337,-0.054944153875113,0.001466991961934,-0.167913615703583,-0.015558778308332,-0.006515194196254) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.278918355703354,0.087493367493153,-0.175523236393929,0.014837369322777,0.009098268114030,-0.102545797824860,-0.113946259021759,-0.020355291664600,0.044603485614061,0.174135759472847,-0.012294052168727,0.020657874643803,0.025862786918879,-0.072622828185558,0.149394974112511,0.023933852091432) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.044811420142651,-0.164015352725983,-0.494486778974533,-0.007015168201178,-0.075929939746857,0.094180926680565,0.013072481378913,-0.007492320612073,0.043416179716587,-0.144989430904388,-0.088071763515472,0.022853052243590,0.053011015057564,0.046238724142313,-0.149415075778961,0.028971828520298) * MODEL11_texOff(vec2(0,1));
res += mat4(0.041047997772694,0.103789024055004,0.013788113370538,0.035461075603962,-0.050549305975437,-0.190876871347427,0.064611248672009,-0.029353283345699,-0.075164027512074,0.096027694642544,-0.086810208857059,-0.028754290193319,-0.106597349047661,0.042417395859957,0.037808500230312,-0.047923099249601) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.036663450300694,0.040450714528561,0.218614295125008,-0.031882446259260,-0.081910490989685,-0.058820292353630,0.041646961122751,-0.048528023064137,-0.032443210482597,-0.091151781380177,0.052472732961178,-0.042356241494417,0.067186191678047,-0.448989808559418,-0.014698845334351,0.003023314522579) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.006684273481369,-0.106034949421883,-0.328704118728638,-0.043741505593061,-0.138744950294495,-0.120257921516895,-0.033097643405199,0.000177579640877,0.037746790796518,0.075851269066334,-0.112262986600399,-0.050256576389074,0.013939044438303,-0.091113112866879,-0.192382454872131,0.080108106136322) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.077411420643330,-0.076954722404480,-0.119726724922657,0.073832392692566,0.009273399598897,-0.180871933698654,0.006003122311085,-0.003149405354634,0.107997432351112,0.037475772202015,0.035473331809044,0.034948352724314,-0.096422612667084,-0.055689595639706,-0.034748245030642,0.063248232007027) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.061694037169218,-0.018356719985604,0.024537205696106,0.058133590966463,0.006799092516303,0.052685521543026,0.022478021681309,0.000056367047364,0.149693846702576,0.060150016099215,0.032997701317072,-0.024965357035398,-0.177419587969780,0.138314664363861,-0.085013516247272,0.000318854174111) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.045005518943071,-0.087912589311600,0.066840417683125,0.070155717432499,-0.005888827145100,-0.009944140911102,-0.191619500517845,-0.019416837021708,0.101480543613434,0.029543103650212,0.039026387035847,-0.005043839104474,-0.145899906754494,-0.152287989854813,-0.000815712788608,-0.000106268336822) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.003867471823469,0.076090000569820,-0.011053193360567,0.129867210984230,-0.228183925151825,-0.245154991745949,-0.024104865267873,-0.027029644697905,0.121944300830364,-0.028230393305421,-0.016307810321450,-0.036243110895157,-0.131676480174065,0.157498508691788,0.006918511819094,0.017280912026763) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.002965332940221,-0.125991418957710,-0.073217920958996,0.091433055698872,0.091696180403233,0.318818688392639,0.032787356525660,-0.023355873301625,0.237562939524651,0.001949849887751,0.081290014088154,-0.028285088017583,-0.188997834920883,-0.248581543564796,-0.069997735321522,0.012786460109055) * MODEL12_texOff(vec2(0,0));
res += mat4(0.049241777509451,0.071899414062500,0.065389730036259,0.012526017613709,0.050150860100985,-0.243722125887871,-0.330100476741791,-0.003424979513511,0.155080035328865,0.042775262147188,0.042563915252686,-0.044991131871939,-0.156780928373337,-0.051365166902542,0.192496016621590,-0.007942257449031) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.025712324306369,0.038809865713120,0.016235996037722,0.064734749495983,-0.056585170328617,-0.104428611695766,-0.216570749878883,-0.054206248372793,0.096429564058781,-0.019398147240281,-0.034718986600637,0.022281344980001,-0.110724203288555,0.133087754249573,0.039523381739855,-0.001141380285844) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.037110600620508,0.038680482655764,-0.051889605820179,0.049469199031591,-0.112546637654305,0.118399061262608,0.178376659750938,-0.045802548527718,0.226786762475967,-0.044615875929594,0.122729569673538,0.015896227210760,-0.146626383066177,-0.066017188131809,-0.118904538452625,-0.042816538363695) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.015876578167081,0.005776705220342,0.102094262838364,-0.012822551652789,-0.051805008202791,-0.076168417930603,-0.017841959372163,-0.029641348868608,0.186598896980286,0.048991966992617,0.040328003466129,0.011346074752510,-0.058563139289618,-0.079104185104370,-0.070243149995804,0.036372706294060) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.047545596957207,-0.095553465187550,0.033987715840340,-0.006338116712868) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_4x_Photo] mapping 3_3

vec4 hook()
{
vec4 res = vec4(0.031572706997395,0.010718691162765,-0.098125740885735,0.153417050838470);
res += mat4(-0.080668486654758,-0.025745565071702,-0.137812405824661,0.082664780318737,-0.067690379917622,0.155769899487495,-0.071664676070213,-0.042098730802536,-0.114636301994324,-0.036545496433973,0.080197274684906,-0.054113838821650,0.009662102907896,-0.141035497188568,-0.140636757016182,-0.020213311538100) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.064375117421150,-0.133452132344246,-0.169758722186089,-0.050891641527414,-0.006833364255726,0.085793554782867,-0.042183194309473,-0.085273712873459,-0.145647704601288,-0.035088006407022,0.042602967470884,-0.194719612598419,0.014471556060016,-0.060290195047855,-0.131284475326538,0.014071065932512) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.034112200140953,-0.138026729226112,-0.080877169966698,-0.146598443388939,-0.051885172724724,0.093749627470970,0.002511565573514,0.132883146405220,-0.001958763459697,0.077953509986401,0.071366831660271,-0.465246498584747,0.070848844945431,0.001397170824930,-0.049046698957682,-0.157848834991455) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.015173630788922,-0.098905853927135,-0.121236778795719,-0.011072468012571,-0.038035724312067,0.032101232558489,-0.131882488727570,0.090801782906055,-0.127684921026230,-0.106590628623962,0.059568352997303,-0.161133155226707,-0.098244152963161,0.143065378069878,0.104778200387955,0.186922669410706) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.077220134437084,-0.134059488773346,-0.156326323747635,-0.174852654337883,0.082984082400799,-0.048965469002724,-0.068303741514683,0.050733491778374,-0.172823011875153,0.001307763974182,0.069025613367558,-0.022898118942976,0.014235620386899,-0.128028899431229,-0.023472480475903,-0.021871177479625) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.006370923016220,-0.077877923846245,-0.063604176044464,-0.251010239124298,0.118720553815365,0.017717663198709,0.047669541090727,-0.070790588855743,0.089907385408878,-0.044012546539307,0.070306971669197,-0.141312912106514,-0.101647429168224,0.043620388954878,-0.071908421814442,-0.043165046721697) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.020593658089638,-0.094229936599731,-0.092010200023651,-0.061998348683119,-0.064103297889233,-0.052507851272821,0.070836566388607,0.056726574897766,-0.016530625522137,-0.008799096569419,-0.019851557910442,-0.073955476284027,0.133108690381050,-0.060005221515894,-0.106516823172569,-0.047324623912573) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.027618709951639,-0.030144592747092,-0.038892671465874,-0.171645805239677,0.074606880545616,-0.071669682860374,0.046483185142279,0.030816363170743,-0.154395326972008,-0.054348599165678,-0.016451425850391,-0.300002127885818,0.043911609798670,-0.033421400934458,-0.139473199844360,-0.093147419393063) * MODEL7_texOff(vec2(1,0));
res += mat4(0.085628688335419,0.010531575419009,-0.138619706034660,0.047759778797626,0.136082962155342,0.003556434530765,-0.036901179701090,-0.013176068663597,-0.066854938864708,-0.066473498940468,0.028929397463799,-0.204057440161705,0.027625689283013,-0.042611401528120,-0.183242484927177,0.051885511726141) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.331441432237625,0.045047476887703,0.021590068936348,0.024947822093964,-0.016188373789191,-0.026347437873483,-0.031063526868820,0.152204617857933,-0.079869270324707,0.029197841882706,-0.090997122228146,-0.012232913635671,0.059025250375271,-0.052156306803226,-0.020172426477075,-0.059885434806347) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.260406374931335,0.046110767871141,0.057709980756044,0.089270889759064,0.124442093074322,-0.074688956141472,-0.035167936235666,-0.329030185937881,-0.051375109702349,-0.184574052691460,-0.063347458839417,-0.042834833264351,-0.012382369488478,0.057544000446796,-0.065479628741741,0.080194666981697) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.012939284555614,-0.178176298737526,-0.034141264855862,0.039119366556406,0.005094842519611,0.064825117588043,0.091048039495945,0.019020957872272,-0.016709998250008,-0.012747792527080,0.039847359061241,-0.332931101322174,0.054175399243832,-0.024180725216866,-0.032621230930090,-0.190626859664917) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.300143003463745,0.064848549664021,-0.093691989779472,-0.003379096742719,-0.019684033468366,-0.157080054283142,-0.009708613157272,0.131092548370361,0.006907653063536,-0.119852103292942,0.066426821053028,0.020735358819366,0.081900797784328,-0.010512745939195,0.064000397920609,0.128557220101357) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.045981317758560,-0.028396852314472,0.040372118353844,0.170951247215271,0.113210484385490,0.011102806776762,-0.081844568252563,-0.286238253116608,-0.020443877205253,0.186844110488892,-0.126766830682755,0.108425475656986,-0.023726474493742,-0.126400932669640,-0.084060899913311,0.015664624050260) * MODEL8_texOff(vec2(0,0));
res += mat4(0.079316698014736,-0.201426893472672,-0.017122402787209,-0.099510543048382,0.002501449547708,-0.041660338640213,-0.107954911887646,-0.027346696704626,-0.144454926252365,-0.070205092430115,0.042041562497616,-0.023345801979303,0.037073504179716,0.080485187470913,-0.022714234888554,-0.026012074202299) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.228455215692520,-0.040775954723358,-0.093036144971848,0.034604441374540,-0.086859874427319,-0.018493093550205,0.140769839286804,0.029791468754411,0.033381346613169,0.052530478686094,0.055226095020771,0.101088970899582,-0.017191881313920,0.076371110975742,0.032101422548294,-0.007277854718268) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.018249740824103,0.016685217618942,0.006391752511263,0.062571793794632,0.045556612312794,0.014407939277589,0.079538807272911,-0.250326991081238,0.064749196171761,-0.013746272772551,0.049957524985075,0.047112658619881,0.143586307764053,-0.063200138509274,0.056215401738882,0.027401484549046) * MODEL8_texOff(vec2(1,0));
res += mat4(0.018456129357219,0.011232501827180,-0.065022803843021,-0.022766564041376,0.014220993034542,-0.029569806531072,0.033475186675787,-0.076599694788456,-0.011202874593437,0.001353522413410,-0.102056920528412,-0.026113208383322,-0.058061085641384,-0.034862782806158,0.017579216510057,-0.174823209643364) * MODEL8_texOff(vec2(1,1));
res += mat4(0.117723070085049,0.045990914106369,0.032358627766371,0.110997535288334,0.055689428001642,0.001025020843372,0.098174825310707,-0.026566347107291,-0.122988171875477,-0.102496623992920,0.113640829920769,0.036239292472601,-0.100698597729206,0.021629102528095,0.035302359610796,0.036737963557243) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.039852529764175,-0.092261336743832,0.083787985146046,-0.110381662845612,0.027071559801698,0.064577177166939,-0.036183387041092,-0.074050873517990,0.118975080549717,0.053881566971540,-0.101181536912918,-0.192148104310036,0.236044481396675,-0.021825991570950,-0.050971273332834,0.054330665618181) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.084545046091080,-0.037465728819370,0.105644375085831,-0.098113432526588,0.210071191191673,0.020067479461432,-0.076098792254925,-0.138301119208336,0.078130148351192,-0.193658649921417,-0.063921667635441,0.151149213314056,-0.115375936031342,0.025982292369008,-0.028235414996743,-0.070808701217175) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.221269428730011,-0.065161541104317,0.058566842228174,-0.045629687607288,-0.119453832507133,0.134593442082405,0.135342016816139,0.069748759269714,-0.054626889526844,0.144370004534721,-0.020912349224091,-0.041219174861908,-0.052482184022665,0.017271900549531,0.016032053157687,-0.024508194997907) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.185939997434616,0.048352941870689,-0.138011246919632,-0.136273756623268,-0.016932019963861,-0.040283828973770,-0.164265841245651,-0.010413703508675,0.057470113039017,-0.147074967622757,0.048736725002527,-0.045094322413206,0.090410389006138,-0.045191120356321,0.077198296785355,0.013225981034338) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.020633799955249,-0.165234386920929,-0.142853543162346,0.129977315664291,0.155035257339478,-0.053231276571751,0.188602209091187,0.089231938123703,-0.050284001976252,0.205880776047707,0.036254569888115,0.072460353374481,-0.150121375918388,-0.048256795853376,0.027220858260989,0.079087659716606) * MODEL9_texOff(vec2(0,1));
res += mat4(0.118061967194080,-0.074874378740788,0.046677872538567,0.011433591134846,-0.043598771095276,0.013453437015414,0.014742606319487,0.028761383146048,0.044659640640020,0.054180141538382,0.064279943704605,-0.074523456394672,0.038312278687954,0.035437099635601,0.021215330809355,0.049743309617043) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.058932363986969,0.136905699968338,0.056021511554718,-0.090228550136089,-0.136431097984314,-0.023552419617772,0.077178634703159,-0.148971468210220,0.071670196950436,0.039489194750786,-0.055188957601786,-0.013505365699530,-0.035028677433729,0.148473635315895,0.044357441365719,-0.024658415466547) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.144774243235588,0.073287554085255,0.110201425850391,-0.164474144577980,-0.044489156454802,0.069682136178017,0.194439351558685,-0.041174449026585,0.044825356453657,-0.118486121296883,0.012708304449916,-0.022884756326675,0.008470378816128,-0.075088292360306,0.057081665843725,0.001451055984944) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.010399019345641,-0.015103090554476,0.103270195424557,-0.116598576307297,-0.107091575860977,-0.141183316707611,-0.139742657542229,-0.057511318475008,-0.003479297040030,0.055742748081684,-0.103000402450562,0.109176009893417,-0.063919700682163,-0.000206831013202,0.114888511598110,0.056037247180939) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.023628078401089,-0.056650929152966,-0.172820091247559,-0.086086787283421,0.096765391528606,0.071326903998852,-0.042286273092031,0.072661958634853,0.111230693757534,0.008995335549116,0.041999462991953,-0.156552076339722,-0.131547138094902,0.005507758352906,0.178792834281921,0.023314960300922) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.071812607347965,0.003972790203989,0.143080502748489,-0.070136457681656,0.039446104317904,0.014290405437350,-0.074730180203915,0.091184034943581,0.041869912296534,0.063762947916985,0.010653752833605,-0.113185070455074,-0.198198705911636,0.021369330585003,0.043942715972662,0.021028362214565) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.123395964503288,-0.009606275707483,0.081961557269096,-0.225123047828674,-0.010037788189948,0.076591752469540,-0.005288302898407,0.121121391654015,-0.011020548641682,-0.079965516924858,-0.096760638058186,0.141729682683945,-0.036646440625191,0.008469763211906,0.118883654475212,0.063675321638584) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.186434000730515,0.147176206111908,0.218742251396179,0.107280239462852,-0.066422767937183,0.071542389690876,-0.106114253401756,0.032197479158640,0.106301322579384,-0.012351383455098,0.037538725882769,-0.182751610875130,-0.156967505812645,-0.111845336854458,0.141161888837814,-0.009904303587973) * MODEL10_texOff(vec2(0,0));
res += mat4(0.067275576293468,-0.017654970288277,-0.169645279645920,-0.117546081542969,0.054347958415747,-0.042961858212948,-0.087569251656532,0.082822963595390,0.056489836424589,-0.030336460098624,0.015758767724037,-0.321936160326004,0.072671562433243,0.037727694958448,0.108054906129837,-0.002285832539201) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.093659482896328,0.249789044260979,-0.007605605758727,0.266274094581604,0.066081903874874,-0.031940825283527,0.010740987956524,-0.017497792840004,-0.042406287044287,0.113977126777172,-0.012135410681367,0.098744980990887,-0.123317174613476,-0.019372617825866,0.126329883933067,0.012850748375058) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.014506842941046,-0.097661554813385,0.059957779943943,0.105866454541683,0.087299086153507,-0.077025413513184,-0.022847140207887,-0.126038208603859,0.065200060606003,0.092079140245914,-0.062755756080151,0.222917944192886,-0.082739926874638,-0.061534576117992,0.007558412384242,-0.034468546509743) * MODEL10_texOff(vec2(1,0));
res += mat4(0.045376498252153,0.065235055983067,0.212662413716316,0.137232050299644,0.008986183442175,0.061030354350805,-0.066162876784801,0.130034193396568,0.119346879422665,0.138735264539719,-0.047345504164696,-0.190105766057968,0.018208868801594,0.030564257875085,-0.037378482520580,-0.024018580093980) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.013291018083692,0.154613688588142,-0.035146191716194,0.004830866120756,0.091598920524120,0.061960753053427,-0.089364252984524,0.026380166411400,-0.021414181217551,0.024790709838271,0.167339235544205,0.026617400348186,0.069580122828484,-0.122850589454174,0.066801480948925,-0.067345686256886) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.046628251671791,-0.223985776305199,0.013595788739622,-0.065796099603176,-0.054125241935253,0.061520680785179,0.017775470390916,-0.193030446767807,0.031065857037902,0.037300221621990,0.166248068213463,-0.106698855757713,-0.162303552031517,-0.078694470226765,0.003507389919832,0.000643090519588) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.186285898089409,-0.063533790409565,0.121670603752136,-0.130075573921204,-0.064869947731495,0.028061898425221,-0.117894552648067,0.110255405306816,0.102500721812248,0.064898908138275,0.103124514222145,0.075228460133076,0.005479205399752,0.010515040718019,0.068446010351181,-0.007103540934622) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.007052822969854,-0.279893875122070,0.141485720872879,-0.181599959731102,0.019618997350335,0.033294375985861,0.055458344519138,0.103739820420742,-0.032356932759285,-0.000961019366514,-0.059498954564333,0.076204009354115,0.009540212340653,0.038101967424154,0.011992714367807,-0.227036371827126) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.561053574085236,0.221090003848076,-0.006227214355022,0.038476925343275,-0.063031703233719,-0.134793162345886,-0.257254093885422,-0.069383814930916,0.003918273374438,0.058342471718788,0.033439226448536,-0.062557719647884,-0.105282098054886,0.036489930003881,-0.040565729141235,-0.060240756720304) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.062541678547859,0.140210986137390,0.071994408965111,-0.022994555532932,-0.083836548030376,0.029314132407308,0.044332806020975,-0.198037996888161,0.028654903173447,-0.080675505101681,-0.016876518726349,-0.178825438022614,0.036833062767982,-0.047175943851471,0.044091731309891,0.062028158456087) * MODEL11_texOff(vec2(0,1));
res += mat4(0.106340937316418,0.004451552871615,-0.089190870523453,-0.023790651932359,-0.070387296378613,0.089101850986481,-0.124526023864746,0.070737391710281,-0.087406389415264,-0.071833491325378,0.049186009913683,0.058363527059555,0.072180256247520,-0.015577033162117,0.056940197944641,-0.022900244221091) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.050946969538927,0.065854556858540,0.153767541050911,0.079737156629562,0.019381266087294,0.031121587380767,0.042092084884644,0.175567641854286,-0.084629803895950,0.107300624251366,0.134652048349380,-0.058824781328440,-0.184798181056976,-0.025474309921265,0.030517198145390,-0.032579325139523) * MODEL11_texOff(vec2(1,0));
res += mat4(0.042614962905645,-0.050763338804245,-0.040869582444429,-0.027500854805112,0.021786851808429,-0.018296496942639,-0.146915048360825,-0.053574543446302,-0.001308710430749,0.068262673914433,0.118025265634060,0.205264523625374,0.092182472348213,0.072274014353752,0.012075597420335,-0.079011075198650) * MODEL11_texOff(vec2(1,1));
res += mat4(0.011905061081052,0.120292656123638,-0.009363994933665,0.157609239220619,-0.002084379084408,-0.063956096768379,0.081851646304131,0.022032326087356,0.072613634169102,-0.038561441004276,-0.006630565505475,0.065759830176830,-0.076920948922634,-0.055488850921392,0.084095753729343,-0.030259354040027) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.054556347429752,0.005211885552853,-0.134072586894035,0.093197107315063,0.029510824009776,-0.073761321604252,0.079040765762329,-0.030826536938548,0.099416814744473,-0.084136813879013,0.043546404689550,-0.049661204218864,-0.015281869098544,0.045041423290968,-0.035706471651793,-0.056228231638670) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.131706893444061,0.067480400204659,0.104794286191463,-0.039798174053431,0.108293429017067,-0.036296140402555,0.064129397273064,-0.241936117410660,0.002462648088112,-0.061897344887257,-0.008643763139844,-0.055986423045397,-0.030321367084980,0.075346626341343,-0.002936050994322,0.145955070853233) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.090775810182095,0.005378666333854,0.146648541092873,-0.024931665509939,-0.124063014984131,0.277224123477936,0.103569291532040,0.210758641362190,0.061947267502546,0.012106118723750,-0.030682897195220,0.123465865850449,-0.133752852678299,-0.099570021033287,0.092846997082233,-0.120873384177685) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.010058813728392,-0.119555726647377,-0.077221915125847,0.101702049374580,-0.105868615210056,0.027297329157591,0.088415354490280,0.254005759954453,0.087662734091282,-0.065395593643188,-0.026554772630334,0.010398821905255,0.111077941954136,-0.127306222915649,-0.086409777402878,-0.069367088377476) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.118434570729733,0.015437136404216,0.088430665433407,-0.155466228723526,0.071118123829365,-0.101029500365257,0.246227666735649,0.065858162939548,-0.043123081326485,0.036495480686426,0.007175043225288,-0.066724367439747,0.016422549262643,0.063732720911503,-0.037504535168409,0.144203662872314) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.051503218710423,0.002763098804280,0.021217953413725,0.129424646496773,0.045495975762606,-0.201838538050652,-0.009396946057677,-0.084165662527084,-0.000702218268998,-0.069667764008045,-0.039861004799604,0.040434863418341,0.014473756775260,0.049941938370466,-0.142601877450943,-0.044064454734325) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.058471009135246,-0.099448412656784,0.061123128980398,-0.006996776442975,-0.115709528326988,0.202763423323631,-0.048889514058828,0.012550788931549,-0.002808412536979,0.124777764081955,-0.038925755769014,-0.005485258996487,-0.121211461722851,-0.093858912587166,0.091932848095894,-0.079613916575909) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.104156807065010,0.026111723855138,-0.059672087430954,0.081037528812885,0.072128094732761,0.019258387386799,-0.109329029917717,-0.247807964682579,-0.132889822125435,0.108264513313770,-0.094513401389122,-0.087790288031101,0.043857902288437,0.103598110377789,0.064834319055080,0.056200452148914) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.016181807965040,-0.143592327833176,0.010441737249494,0.213446885347366) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_4x_Photo] mapping 3_4

vec4 hook()
{
vec4 res = vec4(0.073393933475018,0.228079482913017,0.023476336151361,0.135340452194214);
res += mat4(0.064648710191250,0.023996729403734,0.070316761732101,-0.007415292318910,0.099650308489799,-0.078003570437431,0.027179479598999,0.084324486553669,-0.093593396246433,0.041831906884909,-0.033553410321474,-0.071291558444500,0.005357503890991,0.131047010421753,0.065612204372883,0.078643843531609) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.018505042418838,-0.018572568893433,-0.078304842114449,-0.056924246251583,0.112883344292641,-0.144388630986214,0.042491324245930,0.043876465409994,-0.016729159280658,-0.078018382191658,-0.137082651257515,-0.103088371455669,-0.003217768156901,0.182636573910713,0.012187665328383,0.011231991462409) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.005706995259970,-0.089448690414429,-0.147382989525795,-0.051093496382236,0.075428113341331,-0.097442768514156,-0.124680608510971,0.036500848829746,-0.088923521339893,0.062737599015236,-0.119691155850887,0.002150438027456,-0.019058631733060,0.055606253445148,0.003175755962729,0.055789668112993) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.019418371841311,-0.009954133071005,-0.179927825927734,-0.010437741875648,-0.041504006832838,0.041705910116434,0.111106790602207,0.000859923020471,-0.091566294431686,0.132050246000290,-0.112757273018360,-0.042519159615040,-0.073066942393780,-0.034347549080849,0.317139476537704,-0.087501838803291) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.059132058173418,0.024472918361425,0.023577371612191,0.044909030199051,-0.105514310300350,0.124801762402058,-0.162664055824280,-0.036510102450848,0.045496210455894,-0.069639958441257,0.026999991387129,-0.012479775585234,-0.020796939730644,0.065869979560375,-0.243787646293640,-0.047367215156555) * MODEL7_texOff(vec2(0,0));
res += mat4(0.018588701263070,-0.042086295783520,0.009875465184450,-0.009496907703578,-0.009013690054417,-0.077132388949394,-0.362477153539658,0.047730114310980,-0.004615177400410,-0.084754385054111,-0.121943056583405,-0.064003415405750,-0.003070643637329,0.007868188433349,-0.073482677340508,-0.001801170990802) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.064599938690662,0.010542870499194,-0.041162006556988,-0.013757435604930,-0.008038651198149,-0.053694505244493,-0.010631035082042,0.058525402098894,-0.026923693716526,0.058192882686853,-0.022259278222919,-0.038553260266781,-0.067758046090603,0.004036639817059,-0.064265772700310,-0.022626172751188) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.008270642720163,-0.009859281592071,0.015329164452851,0.043946105986834,-0.005856500472873,-0.055512033402920,-0.062430813908577,-0.103110700845718,-0.132682025432587,0.003585037309676,-0.067373491823673,-0.053404431790113,0.081742465496063,0.054301925003529,0.011371056549251,0.026842404156923) * MODEL7_texOff(vec2(1,0));
res += mat4(0.072465904057026,0.006781099829823,-0.049626685678959,0.029208404943347,0.048329833894968,0.017187759280205,-0.027937237173319,0.001967440126464,-0.140223070979118,-0.019225079566240,-0.034720793366432,0.007998439483345,-0.016115458682179,-0.002738570328802,-0.046274494379759,0.008548334240913) * MODEL7_texOff(vec2(1,1));
res += mat4(0.013188998214900,0.003622394986451,-0.021326191723347,-0.042166482657194,-0.078268326818943,0.019140996038914,0.002440648619086,-0.009361767210066,0.044682875275612,0.063265874981880,0.113420844078064,0.186555847525597,0.131733402609825,-0.051443375647068,0.050815194845200,0.044017937034369) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.038495458662510,-0.145363286137581,-0.211989834904671,-0.150156244635582,-0.174459204077721,0.045653823763132,-0.072690643370152,-0.035633590072393,-0.068635202944279,-0.104388110339642,-0.038280952721834,-0.031335238367319,0.213285848498344,0.034557554870844,-0.026700282469392,-0.409708321094513) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.027291633188725,-0.149459302425385,-0.160508885979652,-0.022960893809795,-0.051130253821611,-0.026976644992828,0.019965743646026,0.058652900159359,0.015180625952780,0.135754421353340,-0.042187482118607,-0.070371583104134,0.057257041335106,-0.009373321197927,0.110333949327469,-0.068082347512245) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.064469382166862,0.030046101659536,-0.130042314529419,-0.124595724046230,0.002244756557047,0.025489564985037,0.112565800547600,-0.030072975903749,-0.082917846739292,0.008200246840715,-0.183915525674820,0.093689605593681,0.199727088212967,-0.000375447241822,-0.027905333787203,-0.055943425744772) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.186337396502495,-0.114239998161793,0.422188043594360,-0.200999781489372,-0.057629663497210,-0.011359586380422,-0.098980396986008,-0.050325132906437,0.023269917815924,0.008880781941116,0.103190660476685,0.116248778998852,0.348356366157532,-0.064031742513180,-0.150495573878288,-0.163554191589355) * MODEL8_texOff(vec2(0,0));
res += mat4(0.019840992987156,-0.017103303223848,-0.091839224100113,-0.008135287091136,-0.045991294085979,0.063465148210526,-0.037761345505714,-0.011112748645246,-0.174909383058548,-0.078996762633324,-0.006660938262939,-0.032621748745441,0.135962083935738,-0.053785111755133,0.179446801543236,-0.078011900186539) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.057493697851896,-0.022542797029018,-0.083386182785034,-0.011042295955122,-0.071865014731884,0.004444024991244,0.105198130011559,-0.043210208415985,-0.021636897698045,0.025416236370802,-0.043263077735901,0.067237682640553,0.053035717457533,0.012391570955515,-0.004947092849761,-0.040100835263729) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.052505239844322,0.019653651863337,-0.011514903977513,-0.000882914580870,0.007310147862881,0.046656288206577,-0.022248495370150,0.008359007537365,-0.011476326733828,0.008173164911568,0.131979599595070,-0.028051054105163,0.051707811653614,-0.017720298841596,0.100635074079037,-0.118471086025238) * MODEL8_texOff(vec2(1,0));
res += mat4(0.048041589558125,0.007600140757859,0.046803824603558,-0.008751194924116,-0.062527596950531,-0.009355105459690,-0.027902770787477,0.001296400441788,0.066100232303143,-0.050814904272556,0.105627492070198,-0.010592004284263,0.151319086551666,0.024989694356918,-0.018398890271783,-0.010936223901808) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.100046887993813,0.131144627928734,-0.123905904591084,-0.125288113951683,-0.060634244233370,-0.027844704687595,-0.074306599795818,-0.018192432820797,-0.077387496829033,-0.022427620366216,-0.034144282341003,0.007248078007251,-0.046319000422955,-0.012620824389160,0.023801270872355,0.097219049930573) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.027295613661408,-0.013205511495471,-0.125954613089561,-0.155125007033348,-0.072768561542034,0.042306896299124,-0.016305001452565,-0.260012537240982,-0.226451009511948,-0.029971180483699,-0.184039577841759,0.093039132654667,-0.091409102082253,-0.001343153999187,-0.059143040329218,0.011642094701529) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.020098749548197,-0.050840172916651,0.014395718462765,-0.026489390060306,-0.146839588880539,-0.021464060992002,0.037897557020187,-0.093188151717186,-0.010496842674911,-0.120436355471611,-0.183225408196449,-0.127833187580109,-0.003840375225991,-0.026475029066205,0.024613300338387,-0.016908807680011) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.037730332463980,0.076099872589111,-0.149003490805626,-0.164105966687202,-0.020528364926577,-0.141253158450127,0.043273255228996,-0.255537927150726,-0.048564344644547,0.044864386320114,0.207077965140343,0.091553017497063,0.070982992649078,-0.023806115612388,0.016038095578551,0.000492878782097) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.273104399442673,-0.019974874332547,-0.097781129181385,0.061027877032757,-0.011620413511992,-0.167419075965881,-0.124077491462231,0.285963833332062,0.141426444053650,0.151695236563683,-0.091185860335827,0.000389174005250,0.070219092071056,0.051078133285046,-0.049306299537420,-0.136164084076881) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.069229044020176,-0.070181332528591,-0.149733781814575,-0.061052110046148,-0.123979061841965,0.023612951859832,0.019386678934097,-0.113785862922668,-0.043081793934107,0.004960108548403,-0.080584503710270,0.037079062312841,0.058419063687325,-0.269992202520370,-0.194155022501945,-0.159488081932068) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.015910258516669,0.021857015788555,0.047650616616011,-0.190695494413376,0.047327518463135,-0.074642986059189,0.169160544872284,0.017620041966438,0.098483137786388,-0.014952672645450,0.001978702144697,-0.037720836699009,0.068099342286587,-0.005898143164814,0.001513664377853,0.050813350826502) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.108457840979099,0.009652145206928,-0.096905194222927,0.048623524606228,0.123891688883305,-0.078225344419479,-0.003775431774557,-0.172845125198364,-0.087110906839371,-0.116007700562477,0.011675342917442,0.041622761636972,-0.150735735893250,0.031506560742855,0.115681335330009,0.072397604584694) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.149179279804230,0.004187685437500,0.179331451654434,0.104444034397602,0.032666221261024,-0.032409634441137,0.046501081436872,0.082100726664066,0.132799580693245,-0.007436233572662,-0.156146138906479,-0.039550639688969,0.015682714059949,-0.091944105923176,0.067133709788322,0.084854438900948) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.084228478372097,0.021783007308841,-0.080569706857204,-0.146768778562546,-0.021403705701232,0.016479521989822,0.035440016537905,-0.051660235971212,0.044964537024498,0.026825930923223,-0.022031933069229,-0.009403247386217,-0.032309375703335,0.001981243025512,-0.057868443429470,-0.010448374785483) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.025293203070760,-0.114080362021923,-0.103325918316841,-0.021403431892395,-0.147682458162308,0.245056927204132,-0.033937662839890,0.112224981188774,0.081351533532143,-0.026056952774525,-0.169380381703377,0.023322461172938,-0.005077468231320,-0.047678932547569,0.007969557307661,-0.060171768069267) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.070180885493755,0.014915214851499,-0.080383911728859,-0.063707567751408,-0.111406527459621,0.104037955403328,-0.047869537025690,-0.101948358118534,0.121846012771130,-0.142112255096436,-0.116252720355988,-0.002307577058673,-0.011132287792861,-0.026274591684341,-0.090046107769012,-0.139071941375732) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.141482219099998,-0.078588597476482,0.003884042846039,-0.254447340965271,-0.090311177074909,0.030088802799582,0.023304883390665,0.050206217914820,-0.032209716737270,0.014170137234032,0.008161718957126,-0.018998991698027,-0.117656536400318,-0.035169169306755,-0.017774507403374,-0.108062848448753) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.086685284972191,0.243365257978439,-0.093238338828087,0.122190304100513,-0.190173551440239,0.124710358679295,-0.274867027997971,0.012077789753675,-0.072584144771099,-0.086100801825523,-0.150758817791939,0.041096713393927,-0.112614966928959,-0.102169826626778,0.031320016831160,-0.162744209170341) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.031309120357037,-0.093426831066608,-0.034705530852079,-0.008294845931232,-0.126978024840355,-0.032629299908876,-0.054794579744339,0.004083483479917,0.016413319855928,-0.029536854475737,-0.144496545195580,-0.018983971327543,-0.105850011110306,0.176039561629295,0.023485785350204,0.070633783936501) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.018399152904749,0.027031026780605,0.118960306048393,0.036925274878740,0.059896007180214,0.013444963842630,-0.025566820055246,0.090364657342434,-0.075566753745079,0.011576287448406,0.009003837592900,-0.003418443026021,-0.149373039603233,-0.073582433164120,-0.038908034563065,-0.059002134948969) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.086214207112789,-0.106417194008827,-0.138768151402473,-0.085573002696037,0.006795242894441,0.027054823935032,-0.093221917748451,-0.030386671423912,0.084209769964218,0.022221362218261,0.080963224172592,0.075049035251141,0.066137135028839,0.005788163747638,0.211304917931557,-0.076252542436123) * MODEL10_texOff(vec2(1,0));
res += mat4(0.056694727391005,-0.008394892327487,0.051156081259251,0.010183648206294,-0.127490535378456,-0.023501375690103,0.062378048896790,0.052595142275095,-0.049304254353046,0.018099343404174,0.062602549791336,0.078922048211098,0.188065737485886,-0.048954579979181,-0.155495643615723,-0.098198033869267) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.014594152569771,-0.066245682537556,0.070914767682552,0.028973136097193,-0.060062866657972,-0.002823245245963,0.093706734478474,0.039256133139133,-0.012646546587348,-0.005945578217506,-0.059822853654623,0.039072107523680,-0.026655979454517,-0.083680212497711,0.065630488097668,0.003189511829987) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.137099385261536,-0.421560585498810,-0.024941239506006,-0.511099696159363,-0.043871723115444,0.076506987214088,0.146431908011436,-0.055720832198858,0.066977396607399,0.003114038379863,-0.006987921427935,0.052288807928562,0.007766930386424,-0.079052343964577,-0.005677257198840,-0.050679095089436) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.182602852582932,-0.052251283079386,-0.043960995972157,-0.188101842999458,0.005133772734553,-0.067232832312584,0.023359932005405,0.074335999786854,-0.034336194396019,0.081529982388020,-0.064317226409912,0.062250774353743,-0.018017351627350,-0.006833057384938,0.014052478596568,-0.057642824947834) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.133399590849876,0.112312145531178,-0.157961443066597,0.006493398454040,-0.046970613300800,-0.021465169265866,0.007708784192801,-0.000743712414987,0.052022829651833,-0.025141842663288,0.034444298595190,-0.000712455715984,-0.122219912707806,0.016314819455147,-0.033432606607676,0.203829228878021) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.089236609637737,0.013282735832036,0.367163121700287,0.203627184033394,-0.094487972557545,0.064880616962910,-0.289313882589340,-0.108375579118729,0.043167326599360,-0.086483709514141,-0.031401317566633,-0.038458101451397,0.014817577786744,-0.018209211528301,-0.054594375193119,-0.058349844068289) * MODEL11_texOff(vec2(0,0));
res += mat4(0.090737074613571,-0.055270668119192,0.170435771346092,0.101396858692169,-0.026503307744861,-0.017046364024282,0.046712793409824,0.008547879755497,0.096293412148952,-0.039345607161522,-0.082595661282539,-0.034283317625523,0.019578177481890,-0.092860177159309,0.043166186660528,-0.053133498877287) * MODEL11_texOff(vec2(0,1));
res += mat4(0.007714504841715,0.011864265426993,-0.011675848625600,-0.024063561111689,-0.059704311192036,0.009431252256036,0.176169067621231,-0.036336041986942,0.070462666451931,-0.027563694864511,0.007483921479434,0.012231112457812,0.029379196465015,-0.078720144927502,-0.078099444508553,0.047764871269464) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.044127553701401,-0.100313484668732,-0.156471565365791,-0.032132204622030,0.032361254096031,-0.054240062832832,0.041536569595337,0.050196506083012,-0.005937052890658,-0.084068328142166,-0.048088684678078,-0.054405398666859,-0.132549822330475,0.016859380528331,0.022775130346417,0.047617036849260) * MODEL11_texOff(vec2(1,0));
res += mat4(0.006148476153612,0.002514911582693,-0.084464535117149,-0.025553965941072,0.026558857411146,-0.019434215500951,-0.040675483644009,0.002559745917097,0.001448221853934,-0.035929270088673,0.107520811259747,0.013494576327503,-0.069086171686649,-0.027347113937140,-0.024046245962381,0.049936540424824) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.053434133529663,-0.004738091491163,-0.024490121752024,-0.152257546782494,0.060446906834841,-0.026337200775743,-0.030539277940989,-0.068781435489655,0.038720570504665,0.014590481296182,0.051316518336535,-0.055713564157486,0.054843079298735,-0.009180071763694,-0.041661553084850,-0.029404465109110) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.151358067989349,0.011848539113998,-0.096552409231663,-0.019542982801795,0.009572485461831,-0.002840885426849,-0.025945700705051,-0.119435638189316,-0.090604968369007,0.166575536131859,-0.079584971070290,-0.062704831361771,0.120291635394096,0.022723168134689,0.041371554136276,0.115714401006699) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.111337482929230,0.106507077813148,-0.203416272997856,-0.025612974539399,-0.027558442205191,-0.073608644306660,-0.070333801209927,-0.107454873621464,-0.013776261359453,-0.047496058046818,-0.211447328329086,0.083024024963379,0.125159770250320,0.014218626543880,0.113223932683468,0.109171509742737) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.145223483443260,0.107208453118801,-0.033770762383938,-0.073029540479183,0.049836333841085,0.114515595138073,0.061015456914902,0.022033723071218,-0.023079333826900,-0.089568421244621,0.051669657230377,-0.013900549151003,-0.115931876003742,-0.037111435085535,0.060031488537788,0.005312698893249) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.176991701126099,-0.048514887690544,0.031030286103487,0.167144984006882,0.033356804400682,-0.332325071096420,0.226870834827423,-0.004643583670259,-0.080565318465233,-0.102327190339565,0.025727216154337,-0.030950959771872,-0.287382602691650,0.110335223376751,-0.165281429886818,0.075658485293388) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.096321292221546,0.048804841935635,0.078793384134769,0.051941715180874,-0.026360156014562,0.077197261154652,-0.005822742357850,0.047243442386389,0.113687850534916,0.047111947089434,-0.010311048477888,0.048369109630585,0.151626244187355,0.097263507544994,0.069158509373665,0.054201506078243) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.000191422033822,0.074575021862984,0.139312356710434,-0.041846260428429,-0.029092725366354,-0.020898137241602,-0.197153419256210,0.006844007875770,0.025543712079525,0.102058030664921,0.094689734280109,0.132085084915161,-0.172186598181725,-0.006474052090198,0.082146413624287,0.089398905634880) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.243193402886391,0.039867706596851,-0.238876819610596,0.158484429121017,0.049041010439396,0.072832480072975,0.196552872657776,0.019380694255233,-0.179978415369987,0.002324433997273,0.326300442218781,0.051063437014818,0.134137392044067,-0.091167643666267,-0.045670401304960,-0.086753286421299) * MODEL12_texOff(vec2(1,0));
res += mat4(0.024875096976757,-0.106092311441898,0.133262723684311,0.065302997827530,0.135130822658539,0.012004203163087,-0.010289478115737,0.044106364250183,-0.019236881285906,-0.042709976434708,0.126779571175575,0.012264030985534,0.025985581800342,0.043275129050016,-0.154045358300209,0.026667304337025) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.587024033069611,0.571584820747375,-0.228122830390930,-0.134607285261154) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_4x_Photo] mapping 3_5

vec4 hook()
{
vec4 res = vec4(-0.211844861507416,0.007346400525421,0.068368308246136,-0.010173701681197);
res += mat4(0.049664113670588,-0.166679739952087,0.045233894139528,-0.199172079563141,-0.075675964355469,0.087411664426327,0.059213373810053,-0.124938368797302,-0.003965099342167,-0.136942341923714,-0.255805492401123,0.146628171205521,-0.030765850096941,-0.104472078382969,-0.055842433124781,0.039014045149088) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.154806360602379,-0.260237723588943,0.017565993592143,-0.319895863533020,-0.109060682356358,0.055898215621710,-0.014170085079968,-0.037848256528378,-0.049047466367483,-0.012262051925063,0.041226834058762,0.220294743776321,-0.089760690927505,-0.290698677301407,-0.133807465434074,-0.355467259883881) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.122191421687603,-0.311796367168427,0.115282855927944,-0.274188548326492,-0.150438368320465,-0.033470246940851,-0.017701581120491,-0.135635703802109,-0.048367511481047,0.007878448814154,0.017518077045679,0.066612876951694,0.031879451125860,-0.215846747159958,-0.045860663056374,-0.009248659946024) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.056188981980085,-0.425635337829590,0.110471360385418,-0.299002110958099,-0.074390746653080,-0.144377008080482,-0.083005651831627,0.004086696542799,-0.078642331063747,-0.171415492892265,-0.054167348891497,0.083276711404324,0.026288580149412,-0.325923949480057,-0.058400385081768,-0.129750400781631) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.141020819544792,-0.205750927329063,0.027005342766643,-0.328941941261292,0.023519711568952,-0.111617967486382,0.108108863234520,-0.005428119562566,0.009160009212792,-0.119030058383942,-0.357131153345108,0.101293154060841,-0.022899303585291,0.005060459487140,0.170487180352211,-0.255898475646973) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.018509991466999,-0.156358629465103,0.043942138552666,-0.301282674074173,0.034216720610857,0.139472007751465,0.224294692277908,-0.040481973439455,-0.113158114254475,0.003953833598644,-0.128609433770180,-0.031733479350805,-0.006613990291953,-0.141003280878067,0.027565497905016,-0.085695400834084) * MODEL7_texOff(vec2(0,1));
res += mat4(0.092918120324612,-0.284005075693130,0.006779836025089,-0.247603863477707,0.013671465218067,0.019554369151592,-0.042818419635296,0.133197009563446,-0.101224914193153,0.011748948134482,-0.078105367720127,-0.093246176838875,-0.024105679243803,-0.090067237615585,0.035535614937544,-0.229869917035103) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.159567147493362,-0.283786356449127,-0.012095206417143,-0.121115386486053,-0.032640688121319,-0.052914619445801,-0.037929438054562,-0.023485623300076,-0.052063532173634,-0.051260191947222,0.011896340176463,0.198345854878426,0.046439841389656,-0.116230666637421,0.042700499296188,-0.147388041019440) * MODEL7_texOff(vec2(1,0));
res += mat4(0.119060695171356,-0.262577652931213,0.013503585942090,-0.300867617130280,0.047793604433537,0.070678941905499,-0.011352649889886,-0.033193565905094,-0.047385625541210,-0.061246663331985,-0.295956611633301,0.141757145524025,0.068529039621353,0.058223631232977,0.066608920693398,-0.035428244620562) * MODEL7_texOff(vec2(1,1));
res += mat4(0.016050359234214,0.287086069583893,0.072798714041710,-0.216286092996597,0.078952245414257,-0.115072704851627,-0.153385519981384,0.112997308373451,0.136669337749481,-0.134913906455040,-0.117002874612808,0.179503858089447,-0.025668751448393,-0.070552073419094,-0.091989107429981,0.133410453796387) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.185481339693069,0.072746194899082,0.094626203179359,-0.090910457074642,0.019915439188480,-0.026985397562385,0.018959522247314,0.051978718489408,0.073018997907639,-0.190916538238525,0.026081621646881,0.040948852896690,-0.064044289290905,0.000615248514805,-0.038330502808094,0.096560135483742) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.045884557068348,0.005371548235416,0.086242102086544,-0.388514459133148,-0.007343983277678,0.010629547759891,-0.035991325974464,-0.026776265352964,0.013801294378936,-0.240034669637680,0.052115760743618,-0.135313242673874,-0.152490913867950,-0.055630005896091,-0.087144464254379,0.006209299433976) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.020606050267816,0.109982475638390,-0.116268880665302,-0.117364160716534,-0.153200805187225,-0.169880717992783,-0.248845964670181,0.053525712341070,0.016583297401667,0.092437818646431,-0.027320340275764,-0.045953702181578,-0.126837223768234,0.033951662480831,0.061915177851915,0.113248586654663) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.018386807292700,0.032713443040848,0.183747708797455,-0.266789048910141,0.033196143805981,0.065893992781639,-0.018688661977649,-0.041572399437428,0.097361996769905,0.072920165956020,-0.175748363137245,-0.002831926802173,-0.051961887627840,0.084052324295044,-0.084447465837002,0.095438852906227) * MODEL8_texOff(vec2(0,0));
res += mat4(0.045136518776417,0.095201857388020,0.030086658895016,-0.289683789014816,-0.063019178807735,0.005090703256428,0.104457333683968,0.046514991670847,-0.049707438796759,-0.037457134574652,-0.019581384956837,0.049943938851357,-0.055493116378784,-0.089931212365627,-0.101614080369473,0.038484275341034) * MODEL8_texOff(vec2(0,1));
res += mat4(0.054513182491064,0.086919121444225,0.033658314496279,-0.101233407855034,-0.097812362015247,-0.027238577604294,-0.121320590376854,0.034575384110212,0.028659971430898,-0.080152183771133,0.015146859921515,-0.027707843109965,-0.088831506669521,0.025016820058227,-0.090218901634216,0.036468345671892) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.042701687663794,0.097661323845387,0.025140961632133,-0.229147836565971,-0.043718054890633,0.030199553817511,0.048667196184397,0.030167510733008,-0.001290990272537,-0.066613316535950,-0.053661320358515,0.028975039720535,-0.071698158979416,-0.036469407379627,0.122622579336166,0.102269612252712) * MODEL8_texOff(vec2(1,0));
res += mat4(0.054301712661982,-0.044917449355125,0.077675528824329,0.044332567602396,-0.008771242573857,-0.023169390857220,0.008466478437185,0.079154528677464,0.033151712268591,-0.001700442982838,0.010913875885308,0.100821755826473,-0.020992573350668,-0.102436915040016,0.054789759218693,0.050805907696486) * MODEL8_texOff(vec2(1,1));
res += mat4(0.038107290863991,0.138338580727577,-0.042932294309139,-0.035647179931402,0.004272717516869,-0.070191055536270,0.001570188789628,-0.112610012292862,0.012755265459418,0.061758290976286,0.165647834539413,0.103503614664078,-0.046387389302254,0.017710296437144,-0.006562097463757,0.031040586531162) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.012803784571588,-0.053114391863346,0.015678750351071,0.154667213559151,0.033218797296286,-0.014324476942420,-0.050025179982185,-0.003785786218941,0.007809625472873,0.058396749198437,-0.061193708330393,0.073340103030205,0.015131988562644,0.014470325782895,0.165431484580040,-0.018073014914989) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.052980985492468,-0.024117521941662,0.067065261304379,0.022592887282372,0.005440833978355,0.107375144958496,0.005488644819707,-0.097599618136883,-0.116193726658821,-0.072646245360374,-0.021729698404670,-0.094562232494354,-0.054128732532263,0.103123053908348,-0.036104053258896,-0.037505157291889) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.022929621860385,-0.032797325402498,0.108449742197990,0.018065258860588,0.011258595623076,0.111570760607719,0.026984781026840,-0.052357900887728,-0.013638111762702,-0.002031500451267,-0.025517780333757,0.055133536458015,-0.034342974424362,0.033011998981237,-0.078927479684353,0.033161643892527) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.160892426967621,-0.185451835393906,-0.181773722171783,0.162791535258293,0.007075438275933,-0.061152912676334,-0.044048979878426,-0.051358491182327,-0.040133964270353,-0.113719299435616,0.166795581579208,0.007800370454788,-0.125104114413261,0.031760793179274,0.076435670256615,-0.006357414182276) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.009707368910313,-0.080669842660427,-0.056952387094498,-0.076184950768948,0.026122568175197,0.030319064855576,-0.095561027526855,-0.036226596683264,-0.085522145032883,0.026143040508032,-0.039860840886831,0.139765039086342,0.093089587986469,0.304277002811432,0.000737305439543,-0.121379859745502) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.079657196998596,-0.071667656302452,-0.044828489422798,-0.121060810983181,0.055602181702852,-0.055305384099483,-0.303664147853851,-0.111194729804993,-0.073806732892990,-0.054877534508705,-0.043649353086948,-0.000514379353262,0.066199399530888,0.064008489251137,0.069516159594059,-0.101011633872986) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.105867706239223,-0.018529111519456,0.003059546230361,0.163190826773643,0.088635534048080,-0.185458883643150,-0.089607156813145,-0.089671067893505,0.022009458392859,0.157943934202194,0.007289838045835,-0.133034512400627,0.043707162141800,-0.166240483522415,0.114556118845940,0.123587183654308) * MODEL9_texOff(vec2(1,0));
res += mat4(0.049936298280954,-0.105105206370354,0.064994506537914,-0.053237263113260,0.089629217982292,0.138633742928505,0.115958817303181,0.192928820848465,-0.118304133415222,-0.065902858972549,-0.030445406213403,-0.036943163722754,0.059108953922987,-0.023451363667846,0.029925487935543,-0.174755901098251) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.029285974800587,-0.198720112442970,-0.045955009758472,-0.066877715289593,-0.140291079878807,0.050736922770739,0.052210267633200,-0.032808490097523,-0.074136331677437,-0.109670706093311,-0.106651380658150,0.141360163688660,-0.083808183670044,0.147862985730171,0.005997254513204,0.022474152967334) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.025583866983652,0.051658969372511,0.135834187269211,0.179801732301712,-0.095209650695324,0.122103579342365,-0.116117030382156,-0.229642510414124,0.030380200594664,-0.197875365614891,-0.053243484348059,0.093002088367939,0.095907196402550,0.130204945802689,0.036329694092274,0.059637703001499) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.088219217956066,0.132171884179115,0.067030102014542,-0.070033527910709,-0.044860571622849,-0.060210488736629,-0.038155611604452,0.017047701403499,0.110154248774052,-0.102228410542011,-0.092731155455112,0.020614564418793,0.067406393587589,-0.070233121514320,0.047819443047047,-0.276927381753922) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.150366440415382,0.259139090776443,0.079549044370651,-0.045795105397701,-0.025749901309609,0.079401217401028,-0.025274829939008,0.217284664511681,-0.019070882350206,-0.300463408231735,-0.164006292819977,-0.002903603482991,-0.008407264947891,0.231718868017197,0.097886383533478,-0.028641568496823) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.271409898996353,0.025038402527571,0.230119675397873,0.007923579774797,0.077674120664597,-0.036298990249634,-0.033801071345806,-0.163570269942284,-0.095552444458008,-0.272839009761810,-0.013576981611550,-0.029173029586673,-0.051669053733349,-0.020624991506338,0.026962725445628,0.023610776290298) * MODEL10_texOff(vec2(0,0));
res += mat4(0.013504588976502,0.085792154073715,-0.062386807054281,-0.109836921095848,-0.140999898314476,0.040913335978985,-0.102729685604572,0.157583028078079,0.019627533853054,-0.331384837627411,-0.066004201769829,0.070306733250618,0.093697220087051,0.154510557651520,-0.042896494269371,-0.091980524361134) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.005765029694885,0.040509108453989,-0.447211444377899,0.165289878845215,-0.030849482864141,-0.086765170097351,0.024806421250105,0.125747427344322,-0.015518641099334,-0.319007128477097,-0.288656055927277,0.063982509076595,-0.029445266351104,0.120952643454075,0.168046951293945,0.011801905930042) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.068762995302677,-0.272143453359604,0.080969251692295,-0.389660120010376,-0.005679288413376,-0.044132143259048,-0.059856228530407,-0.220539852976799,0.062126424163580,-0.603053271770477,-0.400330692529678,0.054074134677649,0.087519347667694,-0.027992920950055,0.068393327295780,-0.016112081706524) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.016048412770033,0.126097708940506,-0.034316692501307,0.186733052134514,0.020936211571097,-0.027460305020213,0.025803575292230,0.185401409864426,0.072209373116493,-0.370056688785553,-0.362085074186325,0.202659130096436,0.088570073246956,0.206119105219841,-0.004082886967808,-0.159900888800621) * MODEL10_texOff(vec2(1,1));
res += mat4(0.172705113887787,-0.248468935489655,0.031952824443579,0.011922155506909,-0.209201768040657,0.129847973585129,-0.176628082990646,0.055112898349762,0.037176456302404,0.032420203089714,0.050339311361313,0.123429149389267,0.125134646892548,0.086888216435909,-0.126973465085030,0.052731111645699) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.091527625918388,-0.002548384247348,0.130657777190208,0.033953901380301,-0.140294060111046,-0.040150534361601,-0.235822796821594,0.076169669628143,0.004606762900949,0.060047131031752,0.114085726439953,0.139455959200859,-0.189289882779121,0.063057489693165,0.051397290080786,0.012259049341083) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.074181497097015,0.310395509004593,0.077289022505283,0.073482252657413,-0.201487928628922,-0.039648000150919,-0.342875033617020,0.215012326836586,0.031217733398080,-0.072790488600731,-0.132303640246391,-0.105658061802387,-0.014371850527823,0.018988035619259,-0.031282719224691,-0.064820289611816) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.006160025019199,0.032340999692678,0.189389020204544,-0.150271847844124,-0.180127099156380,0.079894758760929,-0.274114906787872,-0.021652029827237,0.055199392139912,-0.059018258005381,-0.027996597811580,0.117209494113922,0.035748492926359,-0.089899949729443,0.013209465891123,-0.067152358591557) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.160379663109779,0.052596174180508,0.018071791157126,0.290415585041046,-0.196107700467110,-0.029123391956091,-0.027573907747865,0.106175929307938,-0.069113507866859,-0.046343591064215,0.056441590189934,0.093629695475101,0.034101024270058,-0.110345497727394,-0.228064477443695,-0.045182831585407) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.025319188833237,-0.045342002063990,-0.043187301605940,-0.465560257434845,-0.136537820100784,0.075962454080582,-0.357783794403076,0.097985990345478,-0.099344559013844,-0.193203121423721,0.102345332503319,-0.001399140805006,-0.058163452893496,-0.110334098339081,-0.299598991870880,-0.004287370480597) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.036241602152586,0.073246449232101,-0.112212516367435,0.035102974623442,-0.072247982025146,-0.049350354820490,-0.240870460867882,0.070636712014675,0.029883347451687,-0.157277315855026,-0.122662797570229,-0.003679532324895,-0.018451739102602,-0.002705522347242,-0.089274369180202,-0.120576687157154) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.060718566179276,-0.012868221849203,0.019691927358508,0.182611048221588,-0.201437205076218,-0.073241248726845,-0.437700331211090,0.062182299792767,-0.035202704370022,-0.121363453567028,-0.144722789525986,0.117327854037285,0.005662486422807,-0.001658935332671,0.213744223117828,0.067446000874043) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.049505233764648,0.054444782435894,-0.036343581974506,-0.113456636667252,-0.203071728348732,0.029967315495014,-0.210973381996155,-0.049593321979046,-0.057255990803242,-0.144486829638481,-0.097357027232647,-0.200303182005882,-0.041030637919903,0.091344311833382,-0.109557583928108,0.058496169745922) * MODEL11_texOff(vec2(1,1));
res += mat4(0.029517596587539,-0.065841346979141,-0.032637607306242,-0.024877956137061,0.049061879515648,0.307904690504074,0.049669623374939,-0.023612285032868,0.074566751718521,0.025211786851287,-0.072145827114582,0.064439207315445,0.044556975364685,-0.013767397962511,0.123966775834560,-0.131471738219261) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.006276908330619,-0.121975652873516,0.159087955951691,-0.046315658837557,0.051548093557358,0.040016975253820,0.073660604655743,0.248728767037392,0.001935356180184,0.050412848591805,0.013606278225780,-0.055144432932138,0.036158278584480,0.101008400321007,-0.067065633833408,0.131129354238510) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.045664165169001,-0.032676216214895,-0.026391150429845,-0.124248221516609,0.030165966600180,0.232897207140923,0.093139521777630,-0.195978596806526,0.039637397974730,0.080606363713741,-0.034859541803598,0.087289720773697,0.034817352890968,-0.006883387919515,-0.007613116409630,-0.046964522451162) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.076155394315720,-0.018944786861539,0.021791851148009,-0.000398308678996,0.085126988589764,-0.154564917087555,-0.174118757247925,0.009293843992054,0.037167306989431,-0.031177096068859,0.065633468329906,0.118368647992611,0.018470300361514,0.034652929753065,0.045472662895918,-0.000400763266953) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.181598708033562,-0.133630052208900,-0.077225446701050,-0.084841609001160,-0.230077251791954,-0.181262567639351,-0.235038802027702,0.167134106159210,0.061027005314827,0.093677073717117,0.085962034761906,-0.064534820616245,0.053452797234058,-0.093161977827549,-0.008134396746755,-0.002957012504339) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.002090774709359,0.017531013116241,0.000256954750512,-0.108913190662861,0.168915092945099,-0.170244470238686,0.123021043837070,-0.138923570513725,0.033601038157940,0.102968230843544,0.072068288922310,0.049040306359529,0.019599130377173,0.006704238243401,-0.104184411466122,-0.014394105412066) * MODEL12_texOff(vec2(0,1));
res += mat4(0.018589459359646,-0.077338472008705,-0.114889778196812,0.063089832663536,0.000390500877984,-0.015378243289888,0.200854569673538,-0.011325527913868,0.023651348426938,-0.077083587646484,0.042706467211246,-0.013450635597110,0.127165228128433,0.019120257347822,-0.102834433317184,0.031862068921328) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.068132080137730,0.045387778431177,-0.158887952566147,-0.030916562303901,-0.069443710148335,-0.021559191867709,0.046869289129972,0.156478121876717,0.051959510892630,-0.103874512016773,0.027041919529438,-0.002224884461612,-0.062723457813263,0.110476300120354,-0.007269578985870,-0.209580287337303) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.089569739997387,0.040618669241667,0.059643533080816,0.110182188451290,-0.054900176823139,0.216531693935394,-0.107384681701660,-0.059072878211737,0.119150668382645,-0.120907887816429,0.001190103590488,-0.036444418132305,-0.012839554809034,0.147277593612671,-0.048420287668705,0.169589549303055) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.038395490497351,0.011832969263196,0.149141460657120,0.020013988018036) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_4x_Photo] mapping 3_6

vec4 hook()
{
vec4 res = vec4(-0.020549358800054,0.162130311131477,0.176517143845558,-0.053512327373028);
res += mat4(0.061786033213139,0.012981639243662,-0.237748533487320,-0.056986667215824,-0.058271061629057,0.302131593227386,-0.220065727829933,0.068452171981335,0.138079285621643,-0.086872391402721,0.084484927356243,0.076607160270214,-0.135108336806297,-0.071405053138733,-0.243352502584457,-0.071746617555618) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.013870190829039,-0.047653764486313,-0.211804747581482,-0.043934643268585,0.039529941976070,0.246502339839935,-0.067497462034225,-0.085649557411671,-0.031278237700462,-0.204335823655128,0.119306161999702,-0.076320894062519,0.085520386695862,0.195373788475990,-0.289193063974380,-0.024484161287546) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.023048333823681,-0.059785678982735,-0.170469686388969,-0.000712541688699,-0.053473860025406,0.259093433618546,0.049205470830202,-0.059200480580330,0.016771592199802,-0.164428457617760,0.005416051950306,0.037013527005911,-0.050726220011711,-0.028941486030817,-0.036047808825970,-0.010062995366752) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.019529074430466,-0.013878571800888,-0.137093469500542,0.013050265610218,-0.227405875921249,0.024371538311243,0.046568181365728,-0.076370768249035,0.034123830497265,-0.009250988252461,0.181447878479958,-0.153437227010727,0.044612038880587,-0.077934101223946,-0.313191711902618,0.031155573204160) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.035897105932236,0.055679496377707,-0.260096579790115,0.024978624656796,-0.040072105824947,-0.037699282169342,-0.039896827191114,-0.223523437976837,0.221252724528313,-0.017159037292004,0.085896939039230,-0.069850057363510,0.129737347364426,-0.025081779807806,-0.206763133406639,-0.050264567136765) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.076170623302460,0.075786054134369,-0.341403871774673,0.034985113888979,-0.150986760854721,-0.054440028965473,-0.054790474474430,-0.014864393509924,0.004054941236973,-0.163735806941986,0.074932493269444,-0.024656092748046,0.063178434967995,0.133520454168320,-0.224905371665955,0.073014460504055) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.021999699994922,0.034112729132175,-0.212666675448418,0.027817888185382,-0.030731406062841,0.043567385524511,0.029735594987869,0.013828366994858,0.100587129592896,-0.018269298598170,0.154849886894226,-0.068024352192879,0.042236249893904,-0.006370471324772,-0.099081672728062,-0.083186887204647) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.067691192030907,-0.018286356702447,-0.363685697317123,0.086617559194565,0.106180585920811,0.073936209082603,0.047816313803196,-0.045762855559587,-0.041232436895370,-0.062472555786371,-0.018340568989515,-0.063090816140175,-0.010430692695081,-0.020081739872694,-0.277596324682236,-0.108647517859936) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.143914595246315,0.146997585892677,-0.305985599756241,0.037429288029671,0.030628684908152,0.029291938990355,-0.067337937653065,0.073822781443596,-0.073425076901913,-0.049490299075842,0.046994492411613,0.014933260157704,0.021073279902339,0.000081820471678,-0.084814190864563,-0.067721948027611) * MODEL7_texOff(vec2(1,1));
res += mat4(0.199161902070045,-0.155976861715317,-0.035145670175552,0.298830240964890,-0.112535282969475,0.104509539902210,0.188005805015564,0.083974160254002,-0.192283362150192,0.001071590813808,0.007971350103617,-0.058364387601614,0.311958312988281,0.047807767987251,0.066194050014019,-0.082087844610214) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.051255859434605,-0.557596445083618,-0.171114772558212,0.090145111083984,-0.186860471963882,0.154867261648178,0.130171328783035,-0.072315827012062,0.070621624588966,0.144523799419403,-0.047420915216208,0.036187350749969,0.192165687680244,-0.052709091454744,0.070491194725037,-0.098647542297840) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.026354800909758,-0.362093120813370,-0.044272322207689,-0.047092597931623,-0.091222397983074,0.058635000139475,0.084966674447060,0.045164003968239,-0.049923144280910,-0.067305691540241,-0.027045067399740,-0.083489879965782,-0.132014662027359,-0.032661903649569,0.108732372522354,-0.167934522032738) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.082548640668392,-0.056750934571028,-0.049887187778950,0.208860442042351,0.010855250991881,0.169109717011452,-0.093135923147202,0.069853715598583,-0.009354718960822,-0.001880861935206,0.019877128303051,0.082628488540649,0.158467337489128,0.029191389679909,0.067353531718254,-0.052612401545048) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.191440343856812,-0.237065762281418,-0.055487077683210,0.036166355013847,-0.293122261762619,-0.103543668985367,-0.019854342564940,0.091956727206707,-0.009811123833060,-0.062313776463270,-0.052715022116899,-0.068208150565624,-0.174676075577736,0.119333967566490,0.090489201247692,-0.089191280305386) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.106373384594917,-0.165771245956421,-0.035117685794830,0.016134990379214,-0.012897420674562,0.000693072623108,0.034555748105049,-0.006272269878536,-0.161283120512962,-0.037552416324615,-0.003780287224799,0.016742272302508,0.040407117456198,0.107125088572502,0.172095224261284,-0.057457096874714) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.163727089762688,0.074141278862953,0.025069195777178,-0.052063811570406,0.132699579000473,0.225140199065208,0.076736040413380,-0.033639542758465,-0.064471974968910,-0.013062831014395,0.087120920419693,0.001661314046942,0.031983546912670,0.051537536084652,0.100351661443710,-0.171573638916016) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.154989913105965,-0.022480105981231,0.075772732496262,-0.062372669577599,-0.059514988213778,-0.126645728945732,-0.072394661605358,-0.041083205491304,-0.091907739639282,-0.041192658245564,-0.010749728418887,0.028795650228858,-0.346417129039764,-0.036128133535385,0.001736353267916,-0.176744148135185) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.016922097653151,0.131228297948837,0.016896935179830,-0.021764233708382,-0.004239757545292,-0.035303469747305,-0.011958799324930,0.002690821420401,-0.088377580046654,-0.014077259227633,-0.006804894655943,0.004552405793220,-0.064333669841290,-0.021160859614611,0.001995198661461,-0.096419967710972) * MODEL8_texOff(vec2(1,1));
res += mat4(0.238344386219978,0.013343345373869,-0.054175496101379,-0.029309349134564,0.153701812028885,0.111387521028519,-0.109668575227261,-0.209058105945587,-0.008167917840183,0.040821056813002,0.003935310523957,-0.038603898137808,-0.144729524850845,0.061077140271664,-0.015258726663888,-0.018394950777292) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.132930099964142,-0.070187985897064,-0.013141089119017,-0.186884015798569,0.188734889030457,-0.078249439597130,0.017373122274876,-0.089770860970020,-0.071432769298553,0.125416547060013,-0.027027303352952,0.018835626542568,0.099214412271976,-0.074856780469418,0.110101871192455,-0.001669071847573) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.183798536658287,0.005132274236530,-0.011812351644039,0.021684642881155,-0.113900050520897,0.052475541830063,0.107515461742878,-0.155588284134865,0.000281746528344,-0.070672206580639,0.138348355889320,-0.051154945045710,0.017194649204612,0.105696886777878,-0.056780688464642,-0.029610360041261) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.180513471364975,-0.343772798776627,0.043841257691383,0.015453347936273,0.092180319130421,0.129240676760674,0.005534786731005,0.003769379807636,-0.147473648190498,0.033014535903931,-0.027677483856678,-0.029111254960299,0.080190852284431,0.120812304317951,0.000476820510812,0.113427765667439) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.073712885379791,-0.057814516127110,-0.122891254723072,0.080208353698254,-0.272076666355133,0.111027270555496,-0.110714763402939,0.004380450118333,0.106741324067116,-0.115319617092609,-0.008593519218266,-0.172276198863983,0.178133994340897,0.201671704649925,0.051959253847599,-0.005577388219535) * MODEL9_texOff(vec2(0,0));
res += mat4(0.014946281909943,-0.045249566435814,0.029620286077261,0.056412834674120,-0.260414659976959,0.030776849016547,0.057690285146236,-0.121100164949894,-0.017809657379985,0.058832090348005,0.182124450802803,0.048729073256254,0.038899958133698,-0.049452919512987,-0.067967131733894,0.074096553027630) * MODEL9_texOff(vec2(0,1));
res += mat4(0.182923525571823,0.005922050680965,0.007718693464994,0.171787872910500,-0.060139831155539,-0.123831659555435,0.071600176393986,0.077996611595154,-0.064889721572399,-0.005914179142565,-0.054392296820879,0.058969553560019,0.079353220760822,-0.098225325345993,0.000432052387623,-0.083809927105904) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.078926764428616,-0.081635378301144,-0.163176000118256,-0.047716595232487,0.001408034819178,-0.075378201901913,-0.082297295331955,-0.044895973056555,-0.045501187443733,-0.019698087126017,0.046467319130898,0.105315953493118,0.042602010071278,-0.159755840897560,-0.049437660723925,0.100963354110718) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.011335305869579,0.117108449339867,-0.042778659611940,-0.016619699075818,-0.048346377909184,-0.007165520451963,-0.115266688168049,-0.148473158478737,0.068943254649639,0.007314143236727,-0.139432162046432,-0.024227362126112,-0.004023510031402,-0.131435647606850,-0.078955493867397,0.034830443561077) * MODEL9_texOff(vec2(1,1));
res += mat4(0.014601748436689,-0.037490472197533,0.045222334563732,-0.016662893816829,-0.035452734678984,0.162077397108078,0.053180251270533,-0.129973411560059,0.185926139354706,-0.028199153020978,-0.064191751182079,0.026945499703288,0.220410645008087,-0.007292473688722,-0.057896196842194,-0.097633004188538) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.027730727568269,-0.088838182389736,-0.075395986437798,-0.002521901857108,-0.179106503725052,0.099161826074123,-0.062206316739321,-0.026835713535547,0.001181791885756,0.232650160789490,0.018570825457573,0.031355366110802,0.236238285899162,0.037756230682135,0.024057487025857,0.086615771055222) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.057622399181128,0.030951989814639,0.036968193948269,-0.037924326956272,0.130952358245850,0.092431977391243,0.042992651462555,0.030008230358362,0.014399696141481,-0.099651031196117,0.035980008542538,0.069714583456516,-0.222397342324257,0.005863266997039,0.042549882084131,0.040540002286434) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.222202479839325,-0.070813998579979,0.134717315435410,-0.167356982827187,-0.074574328958988,-0.034491617232561,0.070965662598610,-0.013107291422784,0.248043999075890,-0.045144747942686,-0.199039801955223,0.216029107570648,0.085560135543346,-0.102077223360538,0.044249895960093,-0.042303886264563) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.027281982824206,-0.165746733546257,-0.447741210460663,0.106668367981911,-0.114572159945965,0.168734341859818,0.115074045956135,-0.087319649755955,0.020889725536108,0.255758374929428,-0.070872329175472,-0.101711682975292,0.149125978350639,-0.089734636247158,0.031150933355093,-0.038391020148993) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.011588936671615,-0.150971174240112,0.023730035871267,0.007175549864769,-0.229575321078300,-0.159382134675980,0.025898760184646,-0.011445866897702,-0.100530743598938,-0.055250816047192,-0.147173792123795,-0.081013299524784,0.027761718258262,0.097725465893745,0.009505884721875,-0.085809208452702) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.106174968183041,0.124776586890221,-0.075162298977375,0.222776949405670,0.035220518708229,0.053946167230606,0.008703052066267,-0.020311163738370,0.116186253726482,-0.043198190629482,-0.044000227004290,0.102690026164055,0.155091673135757,0.101049304008484,0.032859932631254,-0.046563424170017) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.000034277429222,0.143070742487907,0.009435784071684,0.228052318096161,0.023430326953530,0.021529439836740,0.045622531324625,-0.192021310329437,-0.116518177092075,-0.057662773877382,-0.156947106122971,0.049914024770260,-0.085895068943501,0.041284941136837,0.013784294947982,-0.010446033440530) * MODEL10_texOff(vec2(1,0));
res += mat4(0.015064107254148,0.090342618525028,0.067428149282932,-0.021768417209387,0.001701576285996,0.088406294584274,0.132709860801697,-0.022316468879580,-0.268887102603912,0.014177388511598,-0.220580607652664,0.051797188818455,0.145987629890442,-0.036202326416969,0.240950897336006,-0.049096319824457) * MODEL10_texOff(vec2(1,1));
res += mat4(0.183986514806747,-0.031186878681183,-0.030032327398658,0.185243800282478,-0.030494097620249,-0.074170298874378,0.036049615591764,-0.029930578544736,0.000305456022033,0.146849423646927,0.178500488400459,0.037380535155535,-0.191288784146309,-0.044398073107004,-0.003788289381191,0.055316124111414) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.191709712147713,-0.230772837996483,0.158828303217888,-0.048975739628077,-0.096077665686607,-0.056345105171204,0.049244668334723,0.015556218102574,-0.159977361559868,0.036117453128099,-0.016292370855808,0.001418991014361,-0.078338496387005,-0.105358503758907,0.047964733093977,-0.023672632873058) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.088394239544868,-0.010008152574301,0.094885408878326,0.005890975706279,-0.175929442048073,-0.013315567746758,0.083700366318226,0.015773033723235,-0.047982048243284,-0.015544497407973,-0.023537151515484,-0.018263708800077,-0.006895870435983,-0.013928370550275,0.042008072137833,-0.045075647532940) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.142838492989540,-0.021630626171827,0.108571633696556,-0.069480925798416,-0.037768967449665,0.027019631117582,0.084213659167290,-0.081323221325874,0.113112509250641,0.003443556604907,0.006597054656595,0.038051713258028,-0.117269456386566,-0.027929620817304,-0.054508529603481,0.050074640661478) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.104851961135864,-0.066429637372494,-0.268476277589798,-0.264198720455170,-0.030414275825024,-0.239957273006439,0.049857981503010,-0.074500508606434,-0.093991279602051,-0.029485013335943,0.015671171247959,-0.092290006577969,0.068302109837532,0.186711296439171,0.128614738583565,0.040329668670893) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.038563124835491,-0.002360011916608,-0.194659247994423,-0.109455086290836,-0.072071343660355,-0.046772200614214,-0.012343347072601,-0.043974466621876,-0.068820402026176,0.030874058604240,-0.024831794202328,-0.048278581351042,0.068240337073803,0.065620742738247,0.158245444297791,-0.042643442749977) * MODEL11_texOff(vec2(0,1));
res += mat4(0.038486331701279,-0.000794494466390,-0.036575019359589,-0.043598756194115,0.016777830198407,-0.019654108211398,0.058356285095215,0.086266160011292,0.008165396749973,-0.155138447880745,-0.032391261309385,0.039862342178822,0.013271279633045,0.092655114829540,-0.020937463268638,0.075246490538120) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.014241702854633,-0.125686123967171,-0.025859383866191,0.016504673287272,-0.180181846022606,-0.016601856797934,0.057266984134912,0.100073300302029,-0.128980919718742,-0.079568319022655,0.048879675567150,0.150059282779694,0.125239863991737,0.044472776353359,0.034766141325235,-0.016733761876822) * MODEL11_texOff(vec2(1,0));
res += mat4(0.037739552557468,-0.056757044047117,0.066930197179317,0.097762919962406,-0.052449829876423,-0.003464358393103,0.040135171264410,0.031452950090170,-0.243144959211349,0.016795063391328,-0.037813603878021,0.055942479521036,0.014231976121664,0.027106758207083,0.016093386337161,-0.004908618051559) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.030373664572835,0.149519354104996,-0.030389728024602,0.102035202085972,0.037413224577904,-0.068923883140087,0.022349029779434,0.011215239763260,0.105685174465179,0.037191890180111,-0.055782850831747,0.121423937380314,0.251358509063721,0.020588532090187,0.008131648413837,-0.040146473795176) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.025357423350215,-0.031103929504752,0.022243810817599,0.053543191403151,0.019469385966659,-0.150845557451248,-0.046927578747272,-0.093969509005547,0.085710316896439,0.032962735742331,0.056136343628168,0.063830964267254,-0.049411203712225,-0.083533480763435,-0.051008876413107,-0.007955223321915) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.167403608560562,0.019110517576337,0.052661944180727,-0.104351781308651,0.018110204488039,0.011805417947471,0.075134038925171,-0.088269963860512,-0.007830298505723,-0.056910444051027,0.051405806094408,0.050351686775684,-0.020914953202009,0.172633126378059,-0.028666576370597,0.163640990853310) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.017508938908577,0.174696981906891,0.076321758329868,-0.022163726389408,0.000459916249383,-0.108341053128242,0.137155801057816,0.195590659976006,0.011950745247304,0.020396564155817,-0.040987614542246,0.157291218638420,0.166686475276947,0.025115095078945,-0.020254550501704,-0.091244123876095) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.139117509126663,0.001498781377450,-0.075521267950535,0.245418459177017,-0.016304619610310,0.080363318324089,-0.004665145650506,0.094567306339741,-0.004586951807141,0.050995044410229,0.162003055214882,0.023311613127589,0.200685068964958,-0.221797198057175,-0.057725235819817,-0.059260580688715) * MODEL12_texOff(vec2(0,0));
res += mat4(0.040765412151814,-0.012743615545332,0.180218040943146,0.049313195049763,-0.142226353287697,-0.173885181546211,0.042468097060919,-0.042794596403837,-0.017155192792416,-0.068214684724808,-0.046904545277357,-0.061215549707413,-0.060416512191296,0.035453051328659,0.078570313751698,0.124205522239208) * MODEL12_texOff(vec2(0,1));
res += mat4(0.010965350084007,0.101954750716686,0.036739040166140,0.195785105228424,-0.029001746326685,0.011770573444664,0.052272867411375,-0.032178666442633,-0.103953920304775,-0.037887938320637,-0.002891656244174,0.052999064326286,-0.125309139490128,-0.052253030240536,-0.046261832118034,0.065175659954548) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.086376927793026,-0.099119454622269,-0.056061089038849,0.146586477756500,-0.096861831843853,0.137153193354607,0.040467072278261,-0.018409747630358,-0.007806682027876,-0.011865858919919,0.079683221876621,-0.024950169026852,-0.146324738860130,-0.004813826177269,-0.003324796911329,-0.072933875024319) * MODEL12_texOff(vec2(1,0));
res += mat4(0.016478953883052,-0.065693490207195,-0.034141529351473,-0.100720740854740,0.035079468041658,0.006069561466575,0.023618591949344,-0.085360936820507,-0.056673739105463,-0.088634446263313,-0.086765900254250,-0.087635092437267,-0.168510675430298,0.045610684901476,-0.057953581213951,0.037332501262426) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.309871941804886,0.182790413498878,0.027992324903607,0.033868595957756) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE1
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_4x_Photo] mapping 4_1

vec4 hook()
{
vec4 res = vec4(-0.280149906873703,0.012511186301708,-0.028043977916241,-0.023160794749856);
res += mat4(-0.105884149670601,-0.034291569143534,-0.037697277963161,0.012227238155901,-0.116127528250217,-0.050873935222626,-0.027091262862086,-0.001366324257106,-0.116651453077793,-0.125792384147644,0.027665371075273,0.009262614883482,0.077439598739147,0.020906111225486,-0.152765721082687,-0.205470547080040) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.150744065642357,-0.166854307055473,0.178807377815247,0.153310820460320,-0.192320942878723,0.149918317794800,0.066562362015247,-0.007925618439913,-0.024180242791772,0.018683200702071,-0.018010821193457,0.018883818760514,-0.046111792325974,-0.132355988025665,0.118785813450813,-0.093163318932056) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.014628616161644,0.108047783374786,0.006319945678115,-0.056285381317139,-0.049294251948595,-0.069721549749374,0.016957156360149,-0.087083041667938,-0.082344897091389,-0.004694981966168,-0.059169046580791,-0.055573556572199,-0.031401395797729,-0.005828566849232,-0.043389264494181,0.019458862021565) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.049256067723036,0.036140322685242,-0.056296151131392,0.146603539586067,-0.022512899711728,0.026703516021371,0.002297648461536,-0.344205558300018,-0.198454037308693,-0.171016022562981,-0.042481590062380,-0.188382133841515,0.130359068512917,0.004739206749946,0.003256659256294,0.077037751674652) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.000839563785121,0.053808618336916,-0.046506464481354,-0.176311358809471,-0.020776912570000,-0.015521612018347,0.035885021090508,0.038737092167139,-0.086983367800713,-0.002496371977031,-0.062908507883549,-0.087497361004353,-0.079834036529064,-0.118056520819664,0.174308896064758,-0.029146434739232) * MODEL1_texOff(vec2(0,0));
res += mat4(0.114977411925793,-0.073668330907822,-0.086697496473789,-0.057719364762306,-0.077510327100754,-0.033583212643862,0.014489062130451,0.031415995210409,0.070740014314651,0.036295227706432,-0.006417518947273,-0.075017973780632,0.085280738770962,-0.008522138930857,-0.165913760662079,-0.011487642303109) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.044043179601431,0.115053191781044,-0.046674709767103,-0.119790919125080,-0.052623502910137,0.023308504372835,-0.063780225813389,0.058181069791317,-0.068486995995045,-0.074917845427990,-0.083176523447037,0.348500430583954,0.214687705039978,0.088001757860184,0.091535329818726,0.113884888589382) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.071894228458405,0.129446476697922,-0.015380673110485,-0.094077281653881,-0.055225990712643,-0.083351217210293,-0.085286468267441,0.081114150583744,-0.113448761403561,-0.065840981900692,0.104881629347801,0.052509110420942,-0.055924851447344,-0.089149110019207,0.104222767055035,-0.065883718430996) * MODEL1_texOff(vec2(1,0));
res += mat4(0.175541847944260,0.040053598582745,-0.103012830018997,0.055951859802008,0.005489691626281,0.041656710207462,-0.039965216070414,0.040666192770004,0.055620197206736,0.023314235731959,0.028261745348573,-0.037595387548208,0.023078838363290,-0.060077063739300,-0.091218933463097,-0.018629958853126) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.019135748967528,0.023687176406384,-0.025302590802312,0.010856736451387,-0.043314557522535,0.077841728925705,0.044348943978548,-0.082544393837452,0.039013862609863,-0.171976029872894,-0.132008820772171,-0.155314773321152,0.043525576591492,-0.016175014898181,-0.010582261718810,0.014220419339836) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.007893400266767,-0.096967332065105,-0.026147942990065,-0.066076844930649,0.026685861870646,-0.000553098216187,-0.012935501523316,0.035164773464203,-0.124770663678646,-0.209301441907883,-0.087027877569199,-0.031909689307213,0.088261850178242,0.011330104433000,-0.007463969290257,0.077209316194057) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.061730802059174,0.031376175582409,0.030675360932946,0.010295722633600,0.180695459246635,0.013698454014957,0.030907038599253,-0.016720620915294,0.074631921947002,-0.072538249194622,0.043450940400362,0.058907952159643,0.014382226392627,0.059891670942307,0.011856880970299,0.055777791887522) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.001374414772727,0.029584847390652,0.036078050732613,-0.142588019371033,0.082255907356739,0.239796549081802,-0.065505720674992,0.035054121166468,0.085988633334637,0.112603224813938,-0.039325397461653,-0.150329738855362,0.016494324430823,0.040172357112169,-0.054707154631615,-0.085100896656513) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.047126624733210,0.091099545359612,-0.109195023775101,-0.125147596001625,0.014949114061892,0.124562099575996,0.129442811012268,0.026544405147433,-0.067368686199188,0.103910520672798,0.138833567500114,0.062952890992165,0.034528005868196,-0.012154346331954,0.032766263931990,-0.041046164929867) * MODEL2_texOff(vec2(0,0));
res += mat4(0.009520493447781,-0.003586359322071,-0.060165878385305,0.032297406345606,0.034300819039345,0.032430946826935,-0.049665473401546,-0.019086595624685,0.115490548312664,0.073029316961765,-0.096941143274307,0.021500967442989,-0.059846900403500,0.005663393996656,-0.087357237935066,0.040485538542271) * MODEL2_texOff(vec2(0,1));
res += mat4(0.035615094006062,0.017204741016030,0.065773539245129,-0.040856800973415,0.013331400230527,0.101536408066750,-0.024614972993731,0.205670058727264,0.047012459486723,0.033384446054697,-0.047250766307116,-0.023964412510395,0.010559794493020,0.055641282349825,-0.003538885619491,-0.195903331041336) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.005211462266743,-0.012419615872204,0.045528192073107,0.117062576115131,0.108935289084911,-0.074619762599468,0.129429310560226,-0.152590259909630,-0.068778827786446,-0.053159102797508,-0.010826285928488,0.089344650506973,0.024123117327690,-0.001147593022324,0.007639692630619,0.013556044548750) * MODEL2_texOff(vec2(1,0));
res += mat4(0.110931359231472,-0.054073896259069,0.027453642338514,-0.036627322435379,0.132077500224113,-0.028613213449717,0.023585548624396,-0.055220268666744,0.133046865463257,0.106581598520279,-0.070668295025826,0.049087487161160,-0.031672194600105,-0.027744986116886,0.035309672355652,-0.009734224528074) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.051796585321426,0.042417250573635,-0.130023539066315,-0.002005988266319,-0.050130184739828,0.044385366141796,-0.063023671507835,0.179756835103035,-0.060549199581146,0.015448442660272,0.038572046905756,0.030328897759318,0.222109377384186,-0.006897944491357,0.020703162997961,0.011997716501355) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.049738075584173,-0.151035949587822,0.023900045081973,0.083284527063370,0.065313175320625,-0.034507017582655,-0.013040537945926,0.004339254926890,-0.076118394732475,0.029104582965374,-0.026620022952557,0.078807532787323,-0.077066712081432,0.087751843035221,-0.116910561919212,0.007854594849050) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.032054152339697,0.022726360708475,-0.132996976375580,-0.049406159669161,0.096327178180218,-0.082328602671623,0.001555768190883,0.101152911782265,-0.012379625812173,0.030506318435073,-0.037317622452974,0.121227793395519,-0.005182981025428,0.049522623419762,-0.045818846672773,-0.022014742717147) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.160449251532555,0.153182163834572,-0.002949876477942,0.067974723875523,-0.038741111755371,0.095215231180191,-0.003258687444031,0.079685889184475,0.075225368142128,-0.111143052577972,-0.110857687890530,-0.075203068554401,0.071359507739544,-0.138587594032288,0.122574731707573,0.170341759920120) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.025574238970876,0.129871875047684,0.006779123097658,0.053623702377081,0.190781295299530,0.085053779184818,0.059366948902607,-0.049441207200289,0.069463759660721,-0.053558882325888,0.142830416560173,0.028770117089152,-0.048670224845409,0.061848416924477,0.007595823612064,0.249405011534691) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.027347614988685,0.163406789302826,-0.181905344128609,0.055419690907001,0.032455459237099,0.078816391527653,0.023811561986804,-0.030514271929860,0.137827187776566,-0.175168633460999,0.035389751195908,-0.033170193433762,-0.073970802128315,-0.005782761611044,-0.002662592101842,0.176428899168968) * MODEL3_texOff(vec2(0,1));
res += mat4(0.002217527478933,-0.053316820412874,0.072970978915691,-0.146528795361519,0.074297375977039,0.069377325475216,0.053893528878689,0.190961614251137,-0.082018859684467,0.029732486233115,0.068035893142223,-0.202694177627563,0.082075014710426,0.016292063519359,-0.128552988171577,-0.117950737476349) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.015991341322660,-0.122802302241325,0.041031960397959,-0.045842044055462,0.175205662846565,0.154046893119812,-0.047511316835880,0.122170716524124,0.177524834871292,0.037924546748400,-0.015802405774593,-0.081434004008770,-0.118443071842194,-0.009085604920983,-0.044756740331650,-0.053170483559370) * MODEL3_texOff(vec2(1,0));
res += mat4(0.095056191086769,-0.031100811436772,-0.091725699603558,-0.012391250580549,0.005209335591644,-0.028884071856737,0.048109624534845,0.071908816695213,0.077780671417713,0.017681833356619,-0.012161768972874,0.048944365233183,-0.099210157990456,0.158866181969643,-0.034256421029568,-0.133080512285233) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.029351603239775,-0.053064066916704,0.124228633940220,0.106509536504745,-0.040283147245646,-0.102364718914032,-0.061748854815960,-0.019703337922692,0.038284029811621,-0.151832774281502,-0.006255097687244,-0.013125240802765,0.049967188388109,0.001853713765740,0.089848197996616,0.015442121773958) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.032235536724329,-0.024339938536286,0.170695200562477,0.054571498185396,-0.056235279887915,0.112096115946770,0.169128462672234,0.050933726131916,0.096893683075905,0.035950049757957,-0.052330233156681,-0.111668087542057,0.203042060136795,0.233895659446716,0.071986399590969,-0.099386312067509) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.068163655698299,0.154792860150337,0.118147134780884,-0.027870219200850,-0.038145545870066,0.198488518595695,0.060470469295979,-0.089130960404873,-0.041322004050016,-0.027625130489469,0.004296009428799,-0.044694345444441,0.090841114521027,0.036273300647736,0.062778562307358,0.013484133407474) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.134313583374023,-0.027365829795599,0.025435561314225,-0.101197317242622,-0.207310676574707,0.079065166413784,-0.083093926310539,-0.272143959999084,-0.073316656053066,0.067539103329182,-0.060313284397125,-0.178947046399117,0.124431066215038,-0.079847246408463,0.010609441436827,-0.037506368011236) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.075729213654995,-0.046331174671650,0.038091752678156,-0.215591177344322,0.112965673208237,-0.028184343129396,-0.014734246768057,-0.276248395442963,0.020582202821970,0.103020831942558,-0.066464476287365,-0.104665420949459,0.018069377169013,-0.200568631291389,0.085599720478058,-0.116215586662292) * MODEL4_texOff(vec2(0,0));
res += mat4(0.167165338993073,-0.068519204854965,-0.006303424946964,-0.000041925926780,-0.063258647918701,-0.005016595590860,0.001471113064326,-0.051668860018253,0.006783232558519,0.100865274667740,0.000062882783823,0.009775688871741,0.143038362264633,-0.130606919527054,0.059833772480488,0.018068037927151) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.112462192773819,-0.112426429986954,0.103514388203621,-0.123315170407295,0.128539696335793,0.040295619517565,-0.069421268999577,0.502586245536804,0.069491647183895,0.050478607416153,-0.106548085808754,0.106579422950745,0.227526441216469,-0.040005162358284,-0.042045712471008,0.213074743747711) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.109030954539776,0.001976914936677,0.036732155829668,0.026562502607703,-0.026529744267464,-0.130164980888367,0.097625650465488,0.114425159990788,0.104359954595566,0.047934222966433,-0.047522768378258,0.060994114726782,0.113565996289253,-0.025429207831621,0.149104103446007,-0.061753854155540) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.111204341053963,-0.040960729122162,0.034566968679428,0.111617103219032,0.202540963888168,-0.114762187004089,-0.017931737005711,-0.034455761313438,0.057586640119553,0.030613116919994,-0.051657848060131,0.046326618641615,0.092064350843430,-0.015320309437811,0.087306179106236,0.058506462723017) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.032078590244055,-0.011907460168004,-0.003884782316163,-0.008713723160326,0.010050673969090,0.099787317216396,0.055975511670113,0.073834829032421,-0.033900905400515,0.038557782769203,-0.011568888090551,-0.028281709179282,-0.031722538173199,0.088875263929367,-0.012166731059551,-0.379071921110153) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.023092843592167,0.029841169714928,-0.095352381467819,-0.101978451013565,-0.008136104792356,-0.018544116988778,-0.010129421949387,0.009014392271638,0.045570123940706,-0.192254662513733,-0.085646077990532,0.018597222864628,0.155373021960258,-0.171048045158386,-0.082181192934513,-0.008462784811854) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.052869852632284,0.056913040578365,0.022908709943295,-0.009324396029115,0.035262938588858,0.029788672924042,0.011577094905078,-0.012040255591273,-0.045815151184797,-0.169455781579018,-0.038051500916481,-0.031029140576720,0.011985787190497,-0.079095430672169,0.060698054730892,-0.020866619423032) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.093280568718910,-0.101191855967045,0.014513920992613,0.036494810134172,-0.029938340187073,-0.151779279112816,-0.199834868311882,-0.251973867416382,-0.121074214577675,-0.084570407867432,0.045748014003038,-0.087413273751736,0.095295853912830,0.106299981474876,-0.079340949654579,-0.088924705982208) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.043416842818260,0.008124520070851,-0.145256027579308,-0.193330481648445,0.061936125159264,-0.225415438413620,0.142229095101357,-0.064202301204205,-0.016654709354043,0.026469931006432,-0.173227906227112,-0.286978751420975,0.163312003016472,-0.122824482619762,-0.069948643445969,0.010991414077580) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.083948761224747,0.015938002616167,-0.038478963077068,0.076389968395233,0.234281554818153,-0.059820171445608,0.154727429151535,0.040257703512907,-0.168600097298622,0.159837350249290,-0.141009286046028,0.113677591085434,-0.207211449742317,-0.068682014942169,0.113273836672306,0.074575804173946) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.061317943036556,-0.068798869848251,0.042230729013681,-0.207826420664787,-0.066277220845222,0.068287968635559,-0.022145751863718,0.270442515611649,0.088883556425571,-0.040512781590223,0.014613148756325,0.190453231334686,0.055839974433184,0.041387386620045,-0.003158419858664,-0.242451354861259) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.060751449316740,-0.031629916280508,-0.048776879906654,-0.088838174939156,0.088796027004719,0.182696074247360,-0.064957186579704,0.204943954944611,0.139840856194496,-0.030251603573561,-0.013790172524750,0.010824793018401,0.010700326412916,-0.129603415727615,0.126651972532272,-0.023051811382174) * MODEL5_texOff(vec2(1,0));
res += mat4(0.082004785537720,0.091373868286610,-0.079920269548893,-0.031206347048283,0.067475900053978,-0.021275972947478,0.003302060998976,0.097027450799942,-0.036741647869349,0.096071891486645,-0.017662854865193,-0.034924458712339,0.072080254554749,-0.022774020209908,0.082860320806503,-0.025319738313556) * MODEL5_texOff(vec2(1,1));
res += mat4(0.178150534629822,0.029736949130893,-0.041318029165268,-0.077317319810390,0.044711392372847,0.115377523005009,0.114814415574074,-0.114218987524509,0.162384092807770,-0.147273391485214,-0.054824151098728,-0.111247897148132,-0.101348921656609,-0.011860942468047,0.073866672813892,-0.014642098918557) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.069547489285469,-0.007667225319892,-0.011285389773548,-0.071102976799011,-0.045989457517862,0.141690745949745,0.108817741274834,-0.063257969915867,-0.142814695835114,0.039262313395739,-0.063018165528774,-0.069233395159245,-0.048780959099531,-0.048949263989925,0.074929580092430,0.202142566442490) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.019679220393300,-0.034926746040583,-0.018767161294818,-0.021265227347612,0.007736859843135,0.010427781380713,-0.058138247579336,-0.016304267570376,-0.034379523247480,-0.008765639737248,-0.056409917771816,-0.000574817298912,-0.225015476346016,0.145281419157982,0.012377294711769,-0.032806295901537) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.100437618792057,0.035401064902544,-0.021161416545510,-0.084259286522865,0.069682016968727,-0.140533477067947,0.121185436844826,0.071091800928116,-0.006427765823901,-0.058455083519220,-0.068070061504841,0.303079277276993,-0.201241239905357,-0.022627601400018,-0.053596023470163,-0.060379378497601) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.019459402188659,-0.022375583648682,-0.008828786201775,-0.101655498147011,-0.071831107139587,-0.128949433565140,0.116930946707726,0.094743520021439,-0.121554531157017,-0.034172926098108,-0.046216581016779,-0.072511464357376,-0.093276008963585,-0.119544699788094,-0.068787321448326,0.115478634834290) * MODEL6_texOff(vec2(0,0));
res += mat4(0.026472309604287,-0.033392611891031,0.036324225366116,-0.059081003069878,-0.054336696863174,-0.127570271492004,-0.154870450496674,-0.027425877749920,0.020577512681484,-0.058401044458151,0.018404459580779,-0.006933715194464,-0.043326556682587,0.123871952295303,0.006153190508485,0.051307864487171) * MODEL6_texOff(vec2(0,1));
res += mat4(0.011545834131539,-0.089487612247467,0.040077999234200,0.018186399713159,-0.010548789054155,0.087701715528965,-0.088330566883087,-0.110872961580753,0.034276671707630,-0.099287800490856,-0.025574140250683,-0.056687328964472,-0.111370794475079,0.104861080646515,-0.010743076913059,-0.076161049306393) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.108870789408684,-0.026302933692932,0.043692499399185,0.037709686905146,-0.120700277388096,0.087556369602680,-0.078952439129353,0.039519634097815,0.141156032681465,-0.037355720996857,-0.001629209029488,-0.223047405481339,0.118094965815544,0.009580999612808,0.049142654985189,0.077542349696159) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.059104770421982,-0.000395352370106,0.036743551492691,-0.089583292603493,-0.073172114789486,0.062687166035175,-0.039347473531961,0.009195457212627,-0.144684493541718,0.027614181861281,-0.034634232521057,0.032118897885084,-0.008993681520224,0.093280985951424,-0.059583999216557,0.130138859152794) * MODEL6_texOff(vec2(1,1));
res += FEATURE1_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.201112091541290,0.836362481117249,0.999687492847443,-0.283152490854263) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE2
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_4x_Photo] mapping 4_2

vec4 hook()
{
vec4 res = vec4(-0.114492498338223,-0.049217622727156,0.010055188089609,-0.073384955525398);
res += mat4(-0.057478692382574,0.219167917966843,0.032660052180290,-0.097699731588364,-0.000749530270696,0.088240645825863,0.090330287814140,0.116371132433414,0.244515866041183,0.111596979200840,-0.008508606813848,0.091603361070156,-0.013037040829659,0.056451246142387,-0.120340012013912,0.002930729882792) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.247689232230186,0.083494715392590,0.002619106322527,-0.036464083939791,0.206410676240921,0.130735382437706,-0.046452812850475,-0.005208882968873,0.022365489974618,0.036315426230431,-0.001679891720414,-0.103336811065674,0.012579690665007,-0.059564005583525,0.026669103652239,-0.041872162371874) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.045982282608747,0.142749398946762,0.051232028752565,-0.037463810294867,-0.009414473548532,0.149134397506714,-0.005270150490105,0.037844851613045,-0.019805613905191,0.084907606244087,0.038583114743233,-0.095752455294132,0.066195614635944,0.032834637910128,0.046069975942373,0.074953779578209) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.151751622557640,0.372123748064041,-0.105930857360363,-0.022352136671543,0.073652200400829,0.056280370801687,-0.060575813055038,0.088594265282154,0.490819334983826,-0.529479324817657,-0.108336620032787,0.084304757416248,-0.130694046616554,0.109333597123623,-0.104894489049911,0.162025704979897) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.093022204935551,0.172097682952881,0.080481350421906,0.051743436604738,-0.044824831187725,-0.016757287085056,-0.062215495854616,-0.032764762639999,0.058340802788734,0.202093645930290,0.085709847509861,0.005056541413069,0.272358715534210,-0.091028571128845,0.048605673015118,0.031412702053785) * MODEL1_texOff(vec2(0,0));
res += mat4(0.099763765931129,-0.000582335516810,0.050397463142872,-0.007187889888883,-0.052029382437468,0.098313771188259,0.007200235966593,-0.031736228615046,-0.118859894573689,0.196242660284042,0.091289781033993,0.010864622890949,-0.060608990490437,-0.103474102914333,-0.057798024266958,0.023588737472892) * MODEL1_texOff(vec2(0,1));
res += mat4(0.012066473253071,-0.122716739773750,-0.130832538008690,0.199738964438438,0.119387447834015,0.084041565656662,-0.007721546106040,0.138570040464401,0.072996698319912,0.176074698567390,-0.038202442228794,0.083548232913017,-0.014296667650342,-0.085933744907379,0.001446953509003,0.129722237586975) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.047667391598225,-0.408899635076523,-0.237122744321823,-0.023862116038799,0.041602190583944,0.126474753022194,0.063858993351460,0.088961213827133,0.086672626435757,0.061473064124584,0.057685397565365,-0.035028003156185,0.203686684370041,0.062894679605961,0.248213887214661,0.066015399992466) * MODEL1_texOff(vec2(1,0));
res += mat4(0.111938707530499,-0.106193579733372,-0.034598466008902,-0.035861991345882,-0.009439298883080,0.164737164974213,0.064300239086151,0.044529680162668,0.003541182493791,0.169387996196747,0.013787671923637,0.040052875876427,-0.085358358919621,-0.070816032588482,0.092979550361633,0.072781302034855) * MODEL1_texOff(vec2(1,1));
res += mat4(0.067032575607300,-0.194750830531120,-0.021357828751206,0.059008423238993,-0.019359679892659,0.046520955860615,-0.020187541842461,0.185923650860786,-0.079375915229321,0.096262447535992,-0.175810843706131,0.158459693193436,0.010192806832492,-0.006694466806948,0.012826252728701,-0.055738620460033) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.028035940602422,0.024608461186290,-0.071361340582371,-0.027401592582464,0.099310927093029,0.031237607821822,0.205516666173935,-0.095052234828472,-0.052690360695124,-0.073160581290722,0.050122983753681,-0.046263050287962,0.029815724119544,0.007913246750832,0.016922254115343,-0.045605178922415) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.103148445487022,0.054426003247499,-0.048898395150900,-0.176346659660339,-0.003725155489519,-0.251224726438522,0.056341011077166,-0.058061938732862,0.036394227296114,0.052561063319445,0.074621371924877,0.079540207982063,0.037034958600998,0.024007625877857,0.004763539414853,0.010235561989248) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.117637455463409,-0.202128648757935,0.013893811032176,0.159626275300980,-0.143485859036446,-0.092114105820656,-0.076458849012852,0.006867413409054,-0.041124254465103,0.007737814448774,0.106794431805611,0.152750372886658,-0.026580300182104,-0.015339269302785,0.010815738700330,0.031267054378986) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.086499385535717,-0.093411080539227,-0.052898932248354,0.116501428186893,0.243508622050285,-0.100306622684002,0.058073468506336,0.009472683072090,0.121520027518272,-0.208917960524559,0.071024365723133,-0.029863251373172,0.042669553309679,-0.002630524337292,0.018087301403284,-0.031686834990978) * MODEL2_texOff(vec2(0,0));
res += mat4(0.134454846382141,-0.177345454692841,-0.154618158936501,-0.052560251206160,-0.079417727887630,-0.246279180049896,0.045266993343830,0.007218966726214,0.042505357414484,-0.037518095225096,0.144829392433167,-0.102118536829948,0.002854056190699,0.019625863060355,-0.036746703088284,0.017417743802071) * MODEL2_texOff(vec2(0,1));
res += mat4(0.077661082148552,-0.056665036827326,-0.051879242062569,-0.018613727763295,-0.049438912421465,0.055590867996216,-0.149727627635002,0.300296783447266,0.064982131123543,-0.064176335930824,-0.202362999320030,0.404496520757675,-0.003920658025891,0.002108105225489,0.003195330267772,-0.010152036324143) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.057542666792870,0.082617670297623,0.002628923859447,0.042880624532700,0.064225122332573,-0.196217730641365,0.044352415949106,0.081883557140827,0.085988245904446,-0.235832184553146,-0.063290275633335,0.015548665076494,0.043033652007580,-0.055520262569189,0.024876950308681,0.015210364945233) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.028083639219403,-0.099412433803082,-0.032260574400425,-0.052022822201252,0.100546166300774,-0.262906044721603,-0.107695683836937,0.052786525338888,0.021894874051213,-0.054156739264727,-0.104385159909725,0.031960241496563,0.032239507883787,0.023565683513880,-0.039925687015057,0.000032250267395) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.063513673841953,0.215199515223503,0.026935391128063,0.073132589459419,0.106652066111565,0.071625009179115,-0.064882464706898,-0.049846637994051,0.023454355075955,-0.090289764106274,0.050286307930946,-0.051812835037708,-0.226224154233932,-0.014339824207127,0.004603227134794,0.120609663426876) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.057470485568047,0.059793457388878,0.025604067370296,-0.109561823308468,-0.084870807826519,0.149220362305641,-0.138603985309601,-0.022091753780842,-0.005598530173302,-0.076126985251904,-0.100455850362778,-0.015292181633413,-0.095253139734268,0.065663687884808,-0.062564730644226,0.057655800133944) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.109545193612576,-0.161108031868935,0.022902186959982,-0.080109633505344,0.008603692054749,-0.063458427786827,-0.038899675011635,-0.072365917265415,-0.169906377792358,0.202486202120781,-0.062944836914539,-0.135508820414543,0.002396157477051,0.164673343300819,-0.004928897134960,0.002020825864747) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.035907134413719,0.010216287337244,0.036320459097624,-0.008663903921843,-0.125631079077721,0.074198640882969,-0.121334202587605,-0.060230154544115,0.023949073627591,0.021088233217597,-0.155184671282768,0.111914776265621,-0.223836779594421,-0.103178508579731,-0.007342814933509,0.042128711938858) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.021645486354828,0.261522799730301,0.131546199321747,-0.132694557309151,-0.157669946551323,-0.038969732820988,-0.211352735757828,-0.153691366314888,0.089228861033916,-0.035427816212177,-0.062602281570435,-0.047777391970158,0.033263262361288,0.360484361648560,0.016615623608232,0.015030156821012) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.043722655624151,-0.052893504500389,0.128268256783485,-0.206926628947258,0.003869893494993,-0.078282169997692,-0.139636039733887,0.061081700026989,0.153822988271713,-0.086331680417061,0.098796434700489,-0.043902326375246,-0.051597382873297,0.151827216148376,0.016636323183775,-0.027689203619957) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.080392420291901,0.008777110837400,-0.032950010150671,-0.006925905589014,-0.140366494655609,-0.086286358535290,0.003966190386564,-0.025015003979206,0.007367423269898,-0.017744788900018,-0.142311125993729,0.097765959799290,-0.079957716166973,0.063604660332203,0.063460841774940,0.168513864278793) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.085694871842861,0.093781471252441,-0.044307474046946,0.213051661849022,-0.070675335824490,0.084383949637413,-0.122524522244930,-0.207187950611115,-0.085247822105885,0.067203499376774,0.182662397623062,-0.150756850838661,-0.206924021244049,0.382567584514618,0.100280255079269,0.137717679142952) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.079324565827847,-0.131379291415215,-0.194723784923553,0.066487953066826,0.133087143301964,-0.153642892837524,-0.077375382184982,-0.159804299473763,0.085673794150352,-0.019768381491303,0.010942406021059,-0.130473479628563,-0.005328392144293,0.296069502830505,-0.027420472353697,0.103698194026947) * MODEL3_texOff(vec2(1,1));
res += mat4(0.118761487305164,-0.061750166118145,-0.075407549738884,0.089948967099190,0.082008026540279,-0.064788527786732,-0.040423560887575,0.008693497627974,0.103042900562286,0.179911494255066,0.055086366832256,0.001908940728754,0.011739538051188,0.051330648362637,0.003145126858726,0.093498423695564) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.055090628564358,0.096502035856247,0.137482494115829,-0.080315090715885,-0.081316828727722,-0.046531889587641,-0.108163043856621,-0.081097923219204,0.034381229430437,0.021588727831841,0.050970755517483,-0.051013685762882,-0.099576808512211,-0.157322019338608,0.054184056818485,0.017440287396312) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.028000634163618,-0.027235664427280,0.023184956982732,0.016169214621186,-0.062983796000481,-0.062204699963331,-0.061670068651438,0.046243257820606,0.016771873459220,-0.077426202595234,0.037587799131870,-0.101253256201744,-0.096648916602135,0.027275878936052,-0.025060502812266,0.086274437606335) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.106331989169121,-0.213560312986374,-0.047201689332724,0.013313778676093,0.205665856599808,-0.328825533390045,-0.029133476316929,-0.071824558079243,0.095586523413658,0.144214496016502,-0.048715848475695,0.168941050767899,0.038212440907955,-0.000380646524718,-0.044431488960981,0.126425340771675) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.009691610932350,-0.073302246630192,-0.022887602448463,0.108029082417488,-0.025534013286233,-0.062256988137960,-0.026387721300125,0.001922736293636,-0.088642701506615,-0.061291065067053,-0.104431755840778,0.082660757005215,-0.291071355342865,0.073271110653877,0.035269141197205,0.057567536830902) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.025995580479503,-0.037015464156866,0.040474779903889,0.074135787785053,-0.160335466265678,0.014493373222649,-0.103942349553108,0.052793003618717,-0.010777117684484,0.132164344191551,-0.028979718685150,-0.020334847271442,0.021604178473353,-0.380369096994400,-0.024809597060084,0.009011418558657) * MODEL4_texOff(vec2(0,1));
res += mat4(0.076012715697289,-0.171837657690048,0.060655541718006,-0.025690566748381,-0.110952690243721,0.148518800735474,0.130663827061653,-0.027418872341514,0.003125322749838,0.058777026832104,-0.139817774295807,-0.003338512266055,-0.017793988808990,0.109838441014290,-0.069790951907635,0.098314881324768) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.049306422472000,-0.130200266838074,0.135965362191200,0.059873804450035,0.023035656660795,0.069110468029976,0.085568197071552,-0.120009675621986,-0.051121719181538,-0.031636402010918,-0.148408934473991,-0.011914239265025,0.020934732630849,-0.205678015947342,-0.031881205737591,-0.014738035388291) * MODEL4_texOff(vec2(1,0));
res += mat4(0.055362291634083,0.008930278010666,-0.029580013826489,0.040996517986059,-0.016613593325019,0.169361755251884,-0.030769443139434,0.039831973612309,-0.012209614738822,-0.056214641779661,-0.041636593639851,0.005841165315360,-0.100049771368504,-0.289015650749207,-0.098798505961895,0.034089811146259) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.063406400382519,0.060272790491581,0.068258941173553,0.036940127611160,0.038735214620829,-0.013352215290070,-0.025087827816606,-0.042872689664364,-0.009811894968152,0.033416386693716,0.093060538172722,-0.061307638883591,0.069748230278492,0.034635778516531,0.073632664978504,-0.090717963874340) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.101912133395672,0.064252845942974,0.050173781812191,0.017787115648389,0.025030042976141,0.093048013746738,0.000071189409937,-0.075204156339169,-0.048719070851803,0.096495836973190,-0.034995365887880,0.158535525202751,-0.113812610507011,-0.254373639822006,-0.129981189966202,-0.032844085246325) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.102674096822739,0.053011655807495,0.014632662758231,0.030672520399094,-0.003166133072227,0.015558570623398,-0.094663769006729,-0.051940910518169,0.025277806445956,-0.012677035294473,0.076562322676182,-0.003744725836441,-0.016259558498859,-0.165806323289871,-0.212779149413109,-0.170864239335060) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.050971228629351,-0.062984302639961,0.176329538226128,0.044463023543358,0.209935069084167,-0.107610121369362,-0.081681825220585,-0.076686419546604,-0.089753851294518,-0.175345256924629,-0.002923054620624,0.031027941033244,0.051173958927393,0.078824661672115,0.269945353269577,-0.145538434386253) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.060423560440540,-0.177751734852791,-0.019124854356050,-0.064663529396057,0.261804938316345,-0.188506394624710,-0.199686050415039,-0.053092703223228,-0.078468859195709,-0.159857705235481,-0.043463729321957,-0.107403203845024,-0.203674480319023,0.043690465390682,0.031737189739943,-0.010653659701347) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.014454877935350,-0.050128195434809,-0.087193481624126,0.071555212140083,0.047576814889908,-0.056618895381689,-0.134264379739761,-0.077945269644260,-0.012089948169887,-0.113876715302467,0.079668469727039,-0.018284039571881,0.096117518842220,0.000062346247432,-0.132420063018799,-0.064182370901108) * MODEL5_texOff(vec2(0,1));
res += mat4(0.191505849361420,-0.070569999516010,0.069646932184696,0.122772835195065,0.057490684092045,0.030331064015627,0.101185016334057,-0.033837269991636,-0.052742980420589,0.080561034381390,-0.119890369474888,0.070250347256660,-0.068658225238323,0.059822216629982,0.114076450467110,-0.307273417711258) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.096897184848785,0.027371473610401,-0.090076707303524,0.154467016458511,-0.156003326177597,0.114012770354748,0.205363228917122,-0.078718014061451,0.004671634640545,0.082024008035660,-0.244087606668472,0.083617225289345,0.047614157199860,0.110142007470131,0.086725667119026,0.052286487072706) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.001867811544798,-0.042162083089352,0.017563872039318,-0.072264350950718,0.001951216952875,-0.087795503437519,0.142795532941818,-0.162601083517075,0.123200461268425,-0.077024757862091,-0.195060625672340,0.040676366537809,-0.004563821945339,-0.024853026494384,0.117125913500786,-0.028394607827067) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.131732434034348,-0.056532796472311,0.016463467851281,-0.062552295625210,0.076871462166309,-0.053732722997665,-0.059087261557579,-0.098202787339687,0.074728801846504,-0.099490977823734,-0.116094887256622,-0.094880960881710,0.018560789525509,0.129545375704765,0.085403710603714,-0.005938529502600) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.016354970633984,-0.043684728443623,-0.041239723563194,-0.010743662714958,-0.120651915669441,0.142141014337540,0.088527947664261,-0.081005372107029,0.034126225858927,0.002001714659855,-0.030276335775852,-0.256688117980957,-0.097392342984676,0.172092735767365,0.198754370212555,-0.108080245554447) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.016553534194827,-0.050684656947851,-0.003685917938128,0.051430016756058,-0.099704571068287,0.063548497855663,0.095809154212475,0.073739618062973,0.025042627006769,-0.012158416211605,0.038079399615526,-0.058290950953960,-0.108378559350967,0.201515227556229,-0.014788979664445,-0.183396846055984) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.098420903086662,0.031885158270597,0.017176646739244,-0.024731738492846,-0.162553444504738,-0.100909143686295,-0.007651123683900,0.253690659999847,-0.009230280295014,-0.058325432240963,0.130810886621475,-0.123454309999943,-0.096256114542484,0.209572389721870,0.142700418829918,0.208511039614677) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.021965038031340,-0.135779529809952,0.028220351785421,0.096511937677860,-0.163967877626419,0.178302779793739,0.085089638829231,0.129577383399010,-0.170321270823479,-0.028639186173677,0.109111957252026,0.021012818440795,-0.049926716834307,0.173032253980637,0.024615162983537,0.170720532536507) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.028948254883289,0.003017760347575,-0.015208072029054,0.005844137165695,-0.022643273696303,-0.148234203457832,0.143694311380386,-0.095290064811707,-0.060830134898424,0.085870526731014,-0.031114766374230,-0.091597273945808,-0.031179903075099,0.002529417397454,-0.075061365962029,0.049269564449787) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.016415661200881,-0.098208993673325,0.100791811943054,-0.060105692595243,0.023330042138696,-0.033773966133595,0.059575963765383,-0.123189680278301,0.129154592752457,-0.053059000521898,-0.095385484397411,-0.166403412818909,-0.013168239034712,0.099707290530205,0.061557613313198,0.208453610539436) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.014899026602507,-0.179542690515518,0.099316522479057,0.046400312334299,-0.278329104185104,0.401208937168121,0.215076550841331,-0.078887589275837,-0.041771009564400,-0.088376410305500,-0.114270910620689,0.174506902694702,-0.014840637333691,0.013215896673501,0.069510780274868,0.128189235925674) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.036985632032156,-0.124400168657303,0.030646072700620,-0.034669913351536,-0.127847328782082,0.025305133312941,-0.020273255184293,0.040868923068047,0.090515695512295,0.141960948705673,0.113531388342381,-0.083793587982655,0.000809805293102,0.064204826951027,0.019694158807397,-0.058831688016653) * MODEL6_texOff(vec2(1,1));
res += FEATURE2_texOff(0);
res = max(res, vec4(0.0)) + vec4(-0.007446494419128,0.077991701662540,0.735269427299500,0.234826669096947) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE3
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_4x_Photo] mapping 4_3

vec4 hook()
{
vec4 res = vec4(-0.093099474906921,0.074924856424332,-0.595776617527008,-0.175279095768929);
res += mat4(0.062296744436026,0.083962246775627,0.034450989216566,-0.092843659222126,0.019500914961100,0.139847770333290,-0.111066922545433,0.026993481442332,-0.140921592712402,-0.075309209525585,0.018556857481599,0.076408766210079,0.059311278164387,-0.020092288032174,0.005993569735438,0.059195198118687) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.016707621514797,0.007439803332090,-0.118667788803577,-0.081198096275330,0.122001990675926,0.221859425306320,0.046730238944292,0.103841923177242,-0.101412348449230,-0.137470513582230,-0.024504838511348,-0.039246734231710,-0.170106381177902,-0.080732688307762,0.052157860249281,0.035153113305569) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.039442237466574,0.153023406863213,0.040794461965561,0.021030424162745,-0.043403498828411,0.423829853534698,0.070928394794464,0.089817687869072,0.175627291202545,0.057741403579712,-0.031005529686809,0.076889216899872,-0.021286297589540,0.077936664223671,-0.055250078439713,-0.180486455559731) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.075538992881775,-0.128338813781738,0.267881095409393,-0.177299171686172,-0.059945978224277,0.080210015177727,-0.095307588577271,0.030220624059439,0.159977570176125,-0.120150670409203,-0.037988740950823,0.219443395733833,0.019105805084109,0.011543648317456,0.099653884768486,-0.006609727162868) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.153087660670280,-0.227537527680397,0.010218297131360,0.086431741714478,0.009814867749810,0.251678943634033,-0.024832677096128,-0.063635393977165,-0.065286122262478,0.032723791897297,-0.065328732132912,-0.150370597839355,-0.035448942333460,0.035749595612288,0.028153080493212,-0.046282291412354) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.086369276046753,0.199316039681435,0.034237701445818,0.105355769395828,-0.022645354270935,0.427995055913925,-0.049369540065527,0.027874356135726,-0.025207638740540,0.017090385779738,0.090144179761410,0.166562184691429,-0.014024553820491,0.007921875454485,0.040798421949148,-0.176147282123566) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.121922478079796,-0.161321580410004,0.069410152733326,-0.148821949958801,-0.134217888116837,0.110242396593094,-0.128180250525475,0.080272614955902,0.063814669847488,0.115451291203499,0.004300358705223,0.190536409616470,-0.029658151790500,0.008564176969230,0.165874600410461,-0.187861442565918) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.040741134434938,-0.071334794163704,0.025321068242192,-0.021967615932226,-0.119966834783554,0.079614758491516,-0.046696659177542,0.024958273395896,0.043511312454939,-0.308637142181396,-0.111794009804726,0.009586852043867,-0.068863071501255,0.040813911706209,0.008773156441748,0.097064480185509) * MODEL1_texOff(vec2(1,0));
res += mat4(0.024602372199297,0.148389965295792,0.016044082120061,0.022171271964908,-0.067327067255974,0.280897527933121,-0.032526239752769,0.040775392204523,0.203066751360893,0.021158322691917,-0.044368539005518,0.019715517759323,-0.044850219041109,0.051410567015409,0.095662482082844,0.049560215324163) * MODEL1_texOff(vec2(1,1));
res += mat4(0.130001395940781,0.117926366627216,0.129416421055794,-0.061663676053286,0.018926095217466,0.161977931857109,0.043179560452700,0.074832424521446,-0.051754459738731,0.164978608489037,0.088802844285965,-0.016439184546471,0.060073673725128,-0.023559575900435,0.042294807732105,0.010120452381670) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.045026559382677,0.052424881607294,0.173970475792885,-0.165344879031181,-0.220137432217598,0.233056008815765,0.105923593044281,0.006246954668313,-0.085613369941711,0.110604561865330,-0.062522388994694,0.013312729075551,0.089918456971645,-0.008706739172339,-0.019051179289818,0.000207918521482) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.041175305843353,0.138417065143585,-0.074077926576138,0.010736116208136,-0.307129830121994,0.093839466571808,0.035364687442780,-0.000056438013416,-0.107615739107132,0.063907876610756,0.064183302223682,0.010504761710763,0.224264368414879,0.016838749870658,0.016260301694274,0.010404947213829) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.021130727604032,0.054577611386776,0.174045473337173,0.033506292849779,-0.236500337719917,0.166091918945313,0.268534958362579,-0.022137945517898,-0.074257612228394,0.053042698651552,0.068949922919273,-0.176488563418388,0.033601611852646,-0.010102899745107,0.043565195053816,-0.009474340826273) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.054486285895109,0.030853986740112,0.260414928197861,0.034460552036762,-0.076316997408867,0.060451555997133,0.009606941603124,0.146777331829071,0.060376547276974,-0.061170514672995,0.078744813799858,0.131349131464958,0.072334624826908,0.005819365847856,0.008319251239300,-0.016304178163409) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.039670478552580,-0.000445804762421,-0.130125656723976,0.090616486966610,-0.298521101474762,-0.056267280131578,-0.013100981712341,-0.005699027329683,0.110958218574524,-0.022681331261992,0.013309584930539,-0.133414104580879,0.008764393627644,0.025320785120130,-0.021528691053391,-0.007880568504333) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.003799817757681,-0.075752325356007,-0.027356687933207,-0.022310869768262,-0.138151317834854,-0.000320525869029,0.186476722359657,-0.144590407609940,-0.051519401371479,0.097870789468288,0.081399008631706,-0.185659915208817,0.070575907826424,-0.002677061129361,0.039579357951880,-0.038243290036917) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.062790289521217,-0.246537968516350,0.091200269758701,-0.074459522962570,-0.379550069570541,0.022254008799791,0.027284244075418,0.152729198336601,0.033306233584881,0.204159736633301,-0.015329900197685,0.100635036826134,0.049487080425024,0.019751485437155,0.021254086866975,-0.056322000920773) * MODEL2_texOff(vec2(1,0));
res += mat4(0.063293322920799,-0.058407120406628,-0.172295480966568,0.069440290331841,-0.171222850680351,0.029978195205331,0.042907726019621,0.225085794925690,-0.023657716810703,0.015454237349331,0.139102503657341,0.028382247313857,-0.015176886692643,0.036863569170237,-0.015395923517644,0.011843961663544) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.021065039560199,0.031786181032658,0.010419430211186,0.027043431997299,-0.016247326508164,-0.044427026063204,0.121182300150394,0.067574433982372,-0.003722038120031,0.009733076207340,-0.034364763647318,-0.020892800763249,0.149028152227402,-0.005075007211417,0.028062548488379,0.004470483865589) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.205447196960449,0.043124753981829,0.221150636672974,0.090116821229458,-0.021631948649883,0.004822955001146,0.077521331608295,-0.086177751421928,0.175311729311943,0.085837565362453,0.031572706997395,0.039257977157831,0.194148764014244,-0.288335651159286,-0.067118376493454,0.036427382379770) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.032466772943735,-0.139914378523827,0.019993435591459,0.041031729429960,0.119804985821247,0.139910593628883,0.059606578201056,0.093811310827732,0.210257619619370,0.139080539345741,0.058491483330727,-0.035827629268169,0.029195250943303,-0.013485608622432,0.019830606877804,0.066500149667263) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.108313597738743,0.022201586514711,-0.062346875667572,-0.117598406970501,0.036585751920938,0.145407781004906,-0.010118349455297,0.120140381157398,0.001330385799520,-0.100303031504154,0.077301122248173,0.039258487522602,-0.032937042415142,-0.070819921791553,0.021380402147770,-0.060709744691849) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.066500052809715,-0.088324643671513,0.125391572713852,0.030159614980221,0.196860179305077,0.067228049039841,0.044376280158758,0.055241089314222,0.067362546920776,0.231668531894684,0.022722266614437,-0.153086587786674,-0.257792264223099,0.051944114267826,-0.007853125222027,-0.012669233605266) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.135606274008751,-0.054406784474850,0.063823916018009,0.002773745683953,0.037247188389301,0.060444045811892,0.030782252550125,0.108151674270630,-0.013296966440976,0.059635121375322,0.088992029428482,0.082337081432343,-0.418360441923141,0.012690375559032,-0.049785736948252,-0.106015935540199) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.176241666078568,0.050691962242126,0.112389385700226,0.098367772996426,0.083055630326271,-0.040814809501171,0.079941131174564,0.072047375142574,0.037945944815874,-0.162541359663010,-0.092974327504635,0.000861206557602,0.131696552038193,0.035540413111448,0.065171331167221,-0.127234011888504) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.033503081649542,0.165827110409737,0.002718500792980,0.029471149668097,-0.053260505199432,-0.022589702159166,0.028803702443838,0.046991195529699,0.044276457279921,-0.062399923801422,0.118239648640156,-0.024337856099010,0.443148165941238,0.013799945823848,-0.009308649227023,0.068774461746216) * MODEL3_texOff(vec2(1,0));
res += mat4(0.027577470988035,-0.030062772333622,0.041457489132881,0.114366881549358,-0.153300926089287,0.009379695169628,0.138021767139435,0.079596914350986,-0.062576025724411,0.056505061686039,-0.013603461906314,-0.032664231956005,0.218835398554802,0.173427119851112,0.093637116253376,-0.019888712093234) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.030749626457691,0.005320583004504,-0.076784498989582,-0.016627747565508,0.004278858192265,-0.132813677191734,-0.091072358191013,-0.183988273143768,-0.088746137917042,0.162261053919792,0.023998102173209,-0.103956758975983,0.019217675551772,0.194276824593544,0.082386352121830,0.089210614562035) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.130417600274086,0.116860270500183,-0.062892295420170,0.047570906579494,-0.050614371895790,-0.130526155233383,-0.053039748221636,-0.056444339454174,0.080621078610420,0.280861943960190,0.093398801982403,-0.013732802122831,0.136961892247200,-0.145575925707817,0.087328471243382,0.100737325847149) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.068965770304203,0.164349690079689,0.091612420976162,0.110995531082153,-0.069180794060230,-0.015537607483566,0.008347466588020,0.022304018959403,0.023994931951165,0.242634460330009,0.023631317541003,0.096150293946266,0.238333880901337,0.106691099703312,0.087221480906010,0.023846814408898) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.182814821600914,0.049361437559128,0.042529746890068,0.034442450851202,0.116570845246315,-0.107781678438187,-0.203647926449776,-0.009991361759603,-0.103295534849167,0.253722190856934,-0.123246796429157,0.083453752100468,-0.086260929703712,-0.045776575803757,0.151821747422218,-0.030224636197090) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.043199934065342,-0.210628792643547,-0.150963202118874,-0.047358300536871,0.203902259469032,-0.009021714329720,-0.133682280778885,-0.078994587063789,-0.002087907399982,0.308297395706177,-0.037088342010975,0.041999943554401,-0.103136442601681,0.159342631697655,-0.009546970948577,-0.027165904641151) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.045664709061384,0.348348736763000,0.012487927451730,0.004294003359973,-0.047646991908550,0.093286879360676,-0.153893768787384,0.117009043693542,0.067188777029514,0.234590858221054,-0.051492866128683,0.087170578539371,-0.033201728016138,-0.194300487637520,0.054869510233402,0.172218158841133) * MODEL4_texOff(vec2(0,1));
res += mat4(0.199213460087776,-0.288416326045990,-0.061689849942923,0.047748938202858,0.050578992813826,0.146967977285385,-0.061357907950878,0.018479280173779,-0.003309490159154,0.278190284967422,0.079195812344551,0.077984593808651,-0.127884283661842,0.098841153085232,0.152331963181496,0.036653321236372) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.069556191563606,-0.257963567972183,0.033431962132454,-0.008904516696930,-0.172491416335106,-0.091315068304539,-0.000944369239733,-0.036318134516478,-0.094887554645538,0.207223623991013,0.074832282960415,-0.032692525535822,-0.163548871874809,-0.212865903973579,0.150650203227997,0.017252014949918) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.099330037832260,-0.089288853108883,0.028915511444211,0.085056044161320,-0.084576085209846,0.065603934228420,-0.064936049282551,0.110582776367664,-0.127771526575089,0.232267498970032,-0.036030571907759,0.155725613236427,-0.115226432681084,-0.202784582972527,0.048598401248455,0.075800552964211) * MODEL4_texOff(vec2(1,1));
res += mat4(0.156925126910210,-0.068210899829865,0.095046713948250,-0.020703811198473,-0.174565047025681,-0.093123823404312,-0.129189953207970,-0.109383806586266,0.314267903566360,-0.031396992504597,-0.029106691479683,-0.141578167676926,-0.035611763596535,0.149837523698807,-0.121081516146660,0.097110584378242) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.032785438001156,0.050189238041639,0.005153432488441,-0.027172505855560,0.254671990871429,-0.037849541753531,-0.025797804817557,0.038967709988356,0.155489921569824,-0.038725413382053,0.109595119953156,0.041101362556219,-0.011371088214219,0.062777779996395,0.201158314943314,-0.021935446187854) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.229944080114365,0.128782778978348,0.087822020053864,-0.046738933771849,0.064855642616749,0.113283745944500,-0.034483645111322,0.005208033602685,-0.389390885829926,0.074084699153900,0.015392797999084,0.169394880533218,0.083175346255302,0.060912076383829,0.068350709974766,0.128652676939964) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.376942366361618,0.034005347639322,0.116714194417000,0.082711845636368,-0.094236731529236,-0.040345482528210,0.108067423105240,0.171552345156670,0.033886913210154,0.068674266338348,-0.117069534957409,-0.139068692922592,0.020612388849258,0.048636034131050,-0.153615027666092,0.091629080474377) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.049034733325243,0.017105005681515,0.083500653505325,-0.083598807454109,-0.003599277231842,0.141419351100922,0.064067885279655,0.047474671155214,0.326614141464233,-0.029799282550812,-0.010221182368696,0.014857596717775,-0.002989690285176,0.026051903143525,0.178220584988594,0.144433706998825) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.130062088370323,0.044551435858011,0.037526842206717,0.127064973115921,-0.008461127988994,-0.114878162741661,0.144507408142090,0.083734057843685,0.654179394245148,0.186724603176117,0.042750503867865,-0.076737001538277,0.026587165892124,-0.116737253963947,-0.104341320693493,-0.070804990828037) * MODEL5_texOff(vec2(0,1));
res += mat4(0.130705550312996,0.041467297822237,0.186779379844666,-0.258499592542648,-0.051113713532686,-0.080440156161785,-0.009906518273056,0.002627568552271,0.483280241489410,0.012955768033862,-0.030066709965467,0.032158102840185,0.065696366131306,0.037519145756960,0.207892730832100,0.046812169253826) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.030575340613723,0.043178040534258,0.091173358261585,0.050591912120581,-0.049015205353498,-0.149376541376114,0.036847334355116,0.092246323823929,-0.135121598839760,-0.084411799907684,0.156626060605049,-0.073676526546478,0.053680609911680,-0.019282871857285,0.182545810937881,-0.052264496684074) * MODEL5_texOff(vec2(1,0));
res += mat4(0.064782805740833,0.089040115475655,0.021462034434080,-0.162962719798088,-0.237582594156265,-0.138342112302780,0.053269363939762,-0.065706312656403,-0.143602460622787,0.113204196095467,-0.031812615692616,0.018870729953051,-0.005242040380836,0.029882049188018,-0.081196680665016,0.007205824367702) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.007210175041109,-0.348884671926498,-0.040145743638277,-0.062992140650749,-0.062965802848339,-0.146676510572433,0.198416039347649,-0.033456061035395,-0.344562590122223,-0.036713469773531,-0.019754845649004,0.163313731551170,0.046197846531868,0.132996231317520,0.022584337741137,-0.038407847285271) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.022656066343188,-0.344997406005859,-0.022537630051374,-0.087302379310131,0.107484936714172,-0.093272961676121,-0.011902716942132,-0.022311795502901,-0.117987282574177,-0.039645049721003,-0.063243567943573,0.012613278813660,-0.041235074400902,0.025344552472234,0.139436900615692,-0.057827629148960) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.025608165189624,-0.434925198554993,-0.031703732907772,-0.142470419406891,0.126165613532066,-0.055446818470955,0.004878863226622,0.019362306222320,-0.115287236869335,0.104887410998344,0.004364529158920,-0.161208450794220,-0.130440264940262,0.202184051275253,0.121528387069702,0.162926465272903) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.008180654607713,-0.345167368650436,-0.037025593221188,-0.007410551421344,0.096149019896984,-0.046611934900284,0.128077223896980,0.126716241240501,-0.072843819856644,-0.060548119246960,0.040355984121561,-0.072014361619949,0.002413658425212,0.119888015091419,-0.096268214285374,-0.021179735660553) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.039248991757631,-0.095590196549892,-0.037255112081766,-0.027165157720447,-0.099039182066917,0.093572191894054,0.078139215707779,0.125770583748817,0.081789344549179,-0.089985825121403,0.001742761465721,-0.163408309221268,-0.175029724836349,-0.128128796815872,0.198515251278877,-0.092211544513702) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.000984957092442,-0.266667336225510,-0.050958100706339,-0.054781191051006,-0.052360795438290,0.226944521069527,0.053255055099726,0.155867084860802,-0.131494283676147,0.096194982528687,0.041450627148151,0.015035804361105,-0.166632175445557,0.050696115940809,0.116252072155476,-0.000650888250675) * MODEL6_texOff(vec2(0,1));
res += mat4(0.011110161431134,-0.375988334417343,-0.014453787356615,-0.015654312446713,-0.159447163343430,-0.132131412625313,-0.038879185914993,-0.071001507341862,-0.134045943617821,-0.031197108328342,-0.152318045496941,-0.032148789614439,0.155889168381691,0.084678962826729,0.096516534686089,-0.067644350230694) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.052081372588873,-0.074850246310234,0.010688759386539,-0.085111044347286,-0.084007270634174,0.040125861763954,0.006994836032391,-0.224625200033188,0.026659945026040,0.024466436356306,-0.034377399832010,-0.062839612364769,0.091723799705505,-0.015704222023487,0.003837949596345,-0.079581238329411) * MODEL6_texOff(vec2(1,0));
res += mat4(0.032039381563663,-0.248357713222504,-0.082267381250858,-0.111552342772484,0.046144470572472,0.081477254629135,-0.015790851786733,0.064859941601753,0.001038648537360,-0.130311161279678,-0.118155002593994,-0.157452523708344,-0.103742010891438,0.146268934011459,-0.086803793907166,-0.096609741449356) * MODEL6_texOff(vec2(1,1));
res += FEATURE3_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.024667089805007,0.319148838520050,-0.016124963760376,0.702998816967010) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE4
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_4x_Photo] mapping 4_4

vec4 hook()
{
vec4 res = vec4(-0.415243089199066,0.023100754246116,-0.019291006028652,-0.189749181270599);
res += mat4(-0.197069466114044,0.020508600398898,0.080662675201893,-0.065366521477699,-0.016238350421190,-0.046297233551741,0.024134397506714,0.005894181784242,-0.118349261581898,0.037492301315069,-0.025223184376955,-0.013485592789948,0.039657574146986,0.002009569434449,0.000661865982693,-0.058758787810802) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.005650668870658,-0.069640398025513,0.108699351549149,0.107261940836906,-0.078457236289978,-0.047304164618254,0.089460857212543,-0.040386065840721,-0.056108154356480,0.169156700372696,0.005507873371243,-0.096419304609299,-0.031761586666107,-0.056602846831083,-0.090804740786552,-0.123353660106659) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.000992793240584,-0.064012505114079,0.036540772765875,-0.099664852023125,-0.224866241216660,-0.012872399762273,0.129496231675148,-0.091630928218365,-0.067224085330963,0.052755232900381,-0.033692978322506,0.004574437625706,-0.034212715923786,0.044214535504580,0.085398189723492,0.020499618723989) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.185513228178024,0.040585916489363,-0.068716101348400,0.164398953318596,-0.038029126822948,-0.000378889817512,-0.064061917364597,-0.034132223576307,0.039119396358728,-0.089044421911240,-0.133167728781700,0.038804229348898,0.074119307100773,-0.056579440832138,-0.040599986910820,0.051844678819180) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.007836953736842,-0.301249027252197,-0.073160305619240,-0.047497663646936,-0.180929452180862,0.000740178627893,-0.002291929442436,-0.008357581682503,0.186216056346893,0.150565996766090,0.020199248567224,-0.225854605436325,-0.018038559705019,0.067428149282932,-0.013913615606725,0.075521647930145) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.095717519521713,0.077322781085968,-0.027326999232173,-0.025189099833369,-0.067567452788353,0.007080471143126,0.039781797677279,-0.106313012540340,0.083316348493099,-0.002368327928707,-0.056516569107771,-0.063512995839119,0.107902348041534,-0.068082109093666,0.084523931145668,0.037615381181240) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.044676307588816,0.066177092492580,-0.006899035070091,0.083836607635021,0.011959375813603,0.017323808744550,0.031946230679750,-0.068020105361938,-0.044919416308403,0.017385199666023,-0.036790635436773,0.109408929944038,0.168409481644630,0.081093251705170,-0.037313349545002,0.018044408410788) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.017413100227714,0.026512797921896,-0.139486581087112,-0.130146846175194,-0.040125604718924,0.030823478475213,0.067084297537804,-0.019902078434825,0.161688908934593,-0.040012534707785,0.065104812383652,-0.050616402179003,-0.000468609068776,-0.092025242745876,0.057632528245449,0.046517681330442) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.005708444397897,0.048415731638670,-0.008325579576194,-0.076205849647522,0.026789121329784,0.030791182070971,0.043405734002590,-0.076634250581264,0.059914868324995,-0.028985578566790,-0.021412646397948,0.013978084549308,-0.028471272438765,-0.177966043353081,0.135721325874329,0.037203330546618) * MODEL1_texOff(vec2(1,1));
res += mat4(0.104282036423683,-0.066412195563316,0.032220672816038,0.095084749162197,-0.028210414573550,0.016055185347795,-0.017427459359169,0.034535177052021,-0.167429268360138,0.121013641357422,0.075524650514126,-0.054153628647327,0.030867742374539,0.111182600259781,0.028173169121146,-0.037567332386971) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.070422813296318,0.081899486482143,-0.011459969915450,-0.033843211829662,-0.090651452541351,0.018294267356396,-0.035036031156778,-0.011346236802638,-0.064322888851166,0.041754104197025,-0.140349328517914,-0.105619303882122,0.006128994282335,-0.066187456250191,0.029149465262890,-0.026943502947688) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.095556385815144,0.043603271245956,-0.024543620646000,-0.113519668579102,-0.092064619064331,-0.179284378886223,-0.047676410526037,0.015813250094652,-0.023642355576158,-0.076110444962978,-0.055224146693945,-0.071702897548676,-0.015302204526961,0.005323477555066,-0.025482103228569,0.013900642283261) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.113642349839211,-0.103378027677536,0.027463054284453,0.207806661725044,-0.031647123396397,0.023193361237645,0.136561855673790,0.028730418533087,-0.057421963661909,-0.078495860099792,-0.061568986624479,-0.223849296569824,0.002369057619944,0.050959214568138,-0.003404872957617,-0.069674275815487) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.239824801683426,-0.029983177781105,0.158276945352554,-0.169913083314896,-0.044059660285711,-0.041278187185526,0.049661170691252,0.107322335243225,-0.055095247924328,0.036272790282965,-0.120681636035442,-0.174836009740829,0.069720856845379,-0.011799302883446,-0.008340416476130,-0.034196417778730) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.083958201110363,0.184003666043282,-0.119500234723091,-0.088766261935234,-0.086117848753929,-0.023118043318391,-0.129518508911133,-0.007017302326858,-0.061678640544415,-0.041520528495312,-0.071702145040035,-0.100806258618832,0.015658508986235,0.014210675843060,-0.022526945918798,-0.032626554369926) * MODEL2_texOff(vec2(0,1));
res += mat4(0.004324821289629,-0.047185271978378,-0.025618808344007,0.179296866059303,0.049891829490662,0.049368556588888,0.157341569662094,-0.073452509939671,0.029678700491786,-0.045314263552427,0.085581414401531,-0.092928260564804,-0.045090623199940,0.056390244513750,0.002604985609651,0.007962815463543) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.036255620419979,0.076806850731373,-0.003311084816232,-0.061026453971863,-0.010500703006983,-0.050085898488760,-0.030147923156619,0.013072575442493,-0.035255923867226,0.093943640589714,-0.141921564936638,-0.160226240754128,0.066143602132797,-0.014489961788058,-0.023377187550068,-0.023342318832874) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.084784567356110,-0.031257256865501,0.004520419985056,-0.106598287820816,-0.079449705779552,-0.013925702311099,0.047571733593941,-0.035012993961573,-0.012196393683553,-0.049628142267466,-0.026172995567322,-0.112096667289734,0.020546890795231,-0.020268769934773,-0.000677629548591,-0.020413033664227) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.063725151121616,-0.008587886579335,0.003313865279779,-0.000292977783829,-0.042875535786152,-0.022350763902068,-0.055357139557600,-0.024785414338112,-0.007111498620361,-0.078771494328976,-0.002325719688088,-0.137437075376511,-0.027329426258802,0.002775167347863,-0.003484532702714,0.020546773448586) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.052369665354490,-0.040278710424900,-0.143267542123795,0.141998991370201,0.012453621253371,0.002003299305215,0.054706063121557,-0.158229634165764,-0.067838378250599,-0.085927367210388,0.089755110442638,-0.088176794350147,-0.071222007274628,0.006731175817549,0.000312926276820,0.036319255828857) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.049966905266047,0.129891633987427,-0.083632349967957,0.040386974811554,-0.022224830463529,0.114980876445770,-0.024056788533926,0.010977949015796,0.019454225897789,-0.089727826416492,-0.008014747872949,0.174689173698425,0.037365850061178,0.081658594310284,-0.023970363661647,-0.025976687669754) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.131696462631226,-0.017673984169960,-0.039494451135397,0.202403709292412,-0.055190503597260,0.002533812075853,-0.002488954691216,0.048494745045900,-0.014523839578032,0.025447372347116,0.092142544686794,-0.029831707477570,0.093866825103760,-0.067985415458679,-0.113857842981815,-0.059079434722662) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.141225442290306,0.058916229754686,0.047350876033306,-0.077914975583553,-0.032076921314001,-0.019259029999375,-0.076226502656937,0.108799025416374,0.103624865412712,-0.095962740480900,-0.076869107782841,-0.063561394810677,0.030964378267527,0.088602855801582,-0.007163153029978,0.137352883815765) * MODEL3_texOff(vec2(0,0));
res += mat4(0.034446585923433,-0.042594406753778,-0.028186496347189,-0.007791585754603,0.054296467453241,-0.021942734718323,-0.006994697265327,-0.092016234993935,-0.022247938439250,-0.050859276205301,0.039262298494577,0.038947384804487,0.110169984400272,-0.115248851478100,-0.075486570596695,-0.036761961877346) * MODEL3_texOff(vec2(0,1));
res += mat4(0.055282566696405,-0.031879033893347,0.004206052049994,0.029274960979819,-0.006005422677845,0.039206262677908,-0.052247539162636,0.023198245093226,0.104631103575230,-0.057637821882963,-0.097921915352345,0.055493075400591,0.022856744006276,0.040243424475193,0.050455126911402,-0.036610271781683) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.006124670151621,-0.000268820964266,0.033015914261341,-0.029936689883471,0.071988031268120,-0.037783715873957,0.054869677871466,0.025792127475142,0.015337720513344,0.015467301011086,0.060667615383863,0.019078399986029,-0.000448214443168,0.086515687406063,0.002770405262709,0.104649864137173) * MODEL3_texOff(vec2(1,0));
res += mat4(0.065691024065018,0.020393583923578,0.061882004141808,0.106256455183029,-0.053252585232258,0.048076137900352,-0.057520214468241,-0.049550112336874,0.051271662116051,0.035458259284496,-0.025386756286025,-0.024950571358204,-0.019559431821108,0.022038770839572,-0.005093172658235,-0.090367749333382) * MODEL3_texOff(vec2(1,1));
res += mat4(0.053344406187534,-0.017150290310383,-0.019540192559361,0.064710065722466,0.075308248400688,-0.064215756952763,0.032037619501352,0.091615900397301,-0.065936982631683,0.009747214615345,0.024800676852465,0.131794586777687,-0.020462604239583,-0.024508770555258,-0.028903573751450,0.007671687752008) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.116654105484486,0.130420550704002,0.016888149082661,0.095393612980843,-0.044196266680956,0.089723125100136,0.049939006567001,0.031811077147722,-0.072005271911621,-0.059782944619656,-0.037469174712896,-0.145761892199516,0.013292291201651,-0.067093193531036,-0.065337650477886,-0.006480670068413) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.043897811323404,-0.171583428978920,-0.076433978974819,0.040901873260736,0.000371427770006,-0.082346752285957,0.071671389043331,-0.019393723458052,-0.117927066981792,0.080852016806602,-0.033096019178629,-0.072265341877937,0.024343684315681,-0.039966028183699,0.003192234085873,0.042652644217014) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.077185891568661,-0.042162455618382,0.009190949611366,-0.010335187427700,0.042392775416374,-0.022641332820058,0.044963311403990,-0.137322410941124,-0.328469008207321,0.031058089807630,-0.097396977245808,-0.019086116924882,0.083825409412384,-0.000124683283502,0.010042734444141,0.039401967078447) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.034027248620987,0.127924844622612,0.057642456144094,-0.008805952966213,-0.259344846010208,0.127154916524887,0.031010996550322,0.010607214644551,-0.200539499521255,0.045839332044125,-0.094366662204266,-0.009647636674345,0.039973013103008,0.073704734444618,0.169658452272415,-0.009150495752692) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.116483248770237,0.027865469455719,-0.015302929095924,-0.097942002117634,-0.190071314573288,0.011887873522937,0.012738544493914,0.125789314508438,-0.131455421447754,0.004937733523548,-0.069114133715630,-0.036703556776047,0.055935814976692,-0.197705090045929,-0.143924579024315,0.026299700140953) * MODEL4_texOff(vec2(0,1));
res += mat4(0.010915171355009,0.041470229625702,-0.045138008892536,0.049373056739569,0.037570018321276,0.046334534883499,0.078156195580959,-0.019827507436275,-0.172334134578705,-0.019003381952643,-0.043655563145876,-0.113652028143406,0.048310797661543,0.049567446112633,-0.071637764573097,0.041550289839506) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.113897025585175,-0.000943674996961,0.068323262035847,0.151446342468262,0.296667546033859,-0.063414484262466,0.213947623968124,-0.021395774558187,-0.164847671985626,-0.001395235303789,-0.101976707577705,-0.032015919685364,0.059113699942827,0.037252381443977,-0.141835093498230,0.143715813755989) * MODEL4_texOff(vec2(1,0));
res += mat4(0.093556456267834,-0.046016044914722,-0.120312750339508,0.012175247073174,-0.007863703183830,0.072073929011822,0.058684818446636,0.017637534067035,-0.000442452583229,0.027460534125566,-0.033325560390949,-0.015936199575663,0.140097796916962,0.058432918041945,-0.079434059560299,0.032819174230099) * MODEL4_texOff(vec2(1,1));
res += mat4(0.157498940825462,-0.031778555363417,-0.001244944985956,-0.093839250504971,-0.093610204756260,0.007565056439489,0.022142637521029,-0.007765933871269,-0.091352783143520,-0.040223598480225,-0.002770507009700,-0.091425314545631,-0.042754434049129,-0.154054597020149,-0.056349329650402,0.043952386826277) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.049129553139210,0.024270504713058,0.072183296084404,-0.004119195975363,-0.010250706225634,0.030812831595540,0.059193111956120,-0.075128465890884,0.024153964594007,0.123905181884766,-0.019377302378416,0.121735587716103,0.053961962461472,-0.120934903621674,0.091998636722565,0.007371903397143) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.092584341764450,-0.059613987803459,-0.008877737447619,-0.037727586925030,0.008948042988777,0.035262778401375,-0.006161496043205,0.014363856986165,0.028254933655262,-0.020037241280079,-0.089561931788921,-0.092562802135944,-0.041977975517511,-0.031796120107174,0.000042011786718,-0.043474346399307) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.053850520402193,-0.083743371069431,0.051196824759245,0.061337310820818,0.131051823496819,0.009205722250044,-0.131315246224403,0.011943084187806,0.052641533315182,0.005813787691295,-0.015191405080259,0.112030066549778,0.006277153734118,0.065278530120850,0.263210058212280,0.113974772393703) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.047470405697823,-0.061312023550272,0.009574235416949,-0.033427294343710,0.029758034273982,0.079863242805004,-0.216130197048187,0.130833327770233,-0.010884988121688,0.010902284644544,0.122902169823647,-0.028782542794943,-0.075452141463757,-0.177482143044472,-0.036062937229872,0.032409880310297) * MODEL5_texOff(vec2(0,0));
res += mat4(0.013398299925029,-0.030038170516491,0.067154183983803,-0.032493349164724,0.011990289203823,0.204146593809128,-0.068852074444294,-0.022201463580132,-0.111763991415501,0.089459255337715,-0.030506050214171,-0.064919248223305,-0.056320097297430,0.029933916404843,0.003591638524085,0.030467271804810) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.090082719922066,0.001048404024914,-0.043115116655827,-0.002809039084241,-0.057874884456396,0.004915949888527,-0.002766069723293,-0.026921341195703,-0.009047444909811,-0.029856836423278,-0.085354648530483,0.030875511467457,-0.017837382853031,0.077491573989391,0.092052794992924,0.035656411200762) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.127746552228928,0.137837812304497,-0.022435354068875,-0.013330904766917,-0.069334484636784,-0.014418087899685,0.055295653641224,0.205370515584946,0.085748724639416,-0.014348695054650,-0.175804138183594,-0.149439409375191,-0.077064126729965,-0.032417368143797,-0.043955750763416,-0.039218358695507) * MODEL5_texOff(vec2(1,0));
res += mat4(0.091388009488583,0.112710438668728,0.056905902922153,0.129516810178757,-0.029205210506916,-0.078569121658802,-0.086070604622364,0.138792544603348,-0.059852473437786,0.080728344619274,-0.042054511606693,-0.134887546300888,0.009285087697208,-0.132464304566383,0.012921713292599,0.004818978253752) * MODEL5_texOff(vec2(1,1));
res += mat4(0.080107815563679,-0.013979668729007,0.050539482384920,0.007846944965422,0.020170440897346,-0.088206671178341,-0.034093637019396,0.065369404852390,0.101298183202744,0.006285141222179,0.043706391006708,0.161573871970177,-0.062902450561523,0.063992768526077,0.030501203611493,0.060564003884792) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.087652273476124,0.005649269092828,0.028842408210039,0.079256333410740,0.037589889019728,-0.096538960933685,0.087786868214607,0.052015453577042,0.089146159589291,-0.117425575852394,-0.058219291269779,0.033033777028322,-0.135855823755264,0.034312117844820,-0.037936650216579,0.003822690574452) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.042859822511673,0.019198561087251,0.055780351161957,0.087278082966805,0.121633678674698,-0.003021725220606,0.060429651290178,0.058605238795280,-0.058888819068670,-0.023551892489195,-0.022894786670804,0.010509742423892,-0.029009014368057,-0.007126565091312,-0.018140986561775,0.078165173530579) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.078916355967522,-0.001345993136056,0.023809300735593,-0.028143839910626,0.068921394646168,-0.018788319081068,0.045201595872641,-0.019540287554264,0.064287021756172,-0.027327436953783,0.026092642918229,0.177794858813286,-0.040745809674263,0.097686834633350,-0.021273070946336,0.143654853105545) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.008117734454572,0.012337034568191,0.020127855241299,0.080995291471481,0.194031983613968,-0.191979244351387,0.136877968907356,-0.083646342158318,0.109169453382492,-0.085780858993530,0.064942516386509,-0.237929090857506,-0.033740852028131,-0.014768344350159,-0.030353516340256,0.041086960583925) * MODEL6_texOff(vec2(0,0));
res += mat4(0.115229010581970,-0.043153461068869,0.016951572149992,0.033225722610950,0.147427394986153,0.125034227967262,0.087903656065464,0.034966804087162,-0.023626729846001,0.204918652772903,0.063830599188805,-0.040482964366674,0.149267047643661,-0.063729710876942,-0.023398878052831,-0.033228900283575) * MODEL6_texOff(vec2(0,1));
res += mat4(0.013100219890475,0.017779402434826,0.024529932066798,0.061066575348377,-0.041775286197662,0.005158010870218,0.136576846241951,-0.058569103479385,-0.012538719922304,-0.011261636391282,-0.071819439530373,0.083805799484253,-0.079419493675232,0.077496178448200,-0.024488272145391,0.098160073161125) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.031765881925821,0.004612796474248,0.009894548915327,0.029104981571436,0.068980790674686,-0.079853393137455,0.089078150689602,-0.011192087084055,-0.017540832981467,0.034444443881512,-0.066342733800411,0.004845042247325,-0.033433008939028,0.032067049294710,-0.024895304813981,-0.008505934849381) * MODEL6_texOff(vec2(1,0));
res += mat4(0.021918900310993,0.025588160380721,-0.014555517584085,0.015130450017750,-0.031988725066185,-0.099630616605282,0.174520850181580,0.068928040564060,-0.000672035501339,0.077769540250301,0.135324880480766,0.105136699974537,-0.049761790782213,-0.029371915385127,-0.022434817627072,0.002007124479860) * MODEL6_texOff(vec2(1,1));
res += FEATURE4_texOff(0);
res = max(res, vec4(0.0)) + vec4(-0.013221192173660,0.104868814349174,0.809189379215240,-0.029082247987390) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE5
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_4x_Photo] mapping 4_5

vec4 hook()
{
vec4 res = vec4(0.070461571216583,-0.108242712914944,-0.117704689502716,0.000208042867598);
res += mat4(0.101117178797722,-0.142576232552528,0.041789244860411,-0.018700454384089,-0.056146416813135,0.114069595932961,0.116815492510796,0.026077860966325,-0.061112709343433,-0.050586625933647,-0.034130230545998,0.011320628225803,0.135483786463737,-0.072356589138508,-0.115813486278057,-0.000646624830551) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.065090894699097,-0.171332433819771,-0.005130935460329,0.066522128880024,0.281270772218704,-0.056473195552826,-0.007464613299817,0.108935505151749,0.026322713121772,0.067253306508064,0.042653638869524,-0.054576326161623,-0.105806916952133,0.058771621435881,-0.029778692871332,0.049508329480886) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.087529964745045,-0.016766237094998,-0.085599072277546,-0.000736393965781,0.068307444453239,0.010032936930656,0.018346536904573,0.037958845496178,0.032993093132973,-0.119393438100815,0.017035191878676,-0.001900244387798,0.034756086766720,-0.238270953297615,0.301637113094330,-0.107676379382610) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.183748900890350,-0.034583173692226,-0.048333015292883,0.116810478270054,-0.020771337673068,0.031554453074932,0.124996200203896,-0.042917061597109,0.124179005622864,0.037833377718925,-0.260028421878815,-0.035144373774529,-0.080886550247669,-0.000086735148216,0.012542832642794,0.040294874459505) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.091930508613586,-0.093842558562756,-0.006999332923442,-0.100941613316536,0.125965386629105,-0.035083647817373,0.109158821403980,-0.029165929183364,0.034932903945446,0.088873945176601,0.240116238594055,0.106713779270649,-0.072085104882717,-0.033743038773537,-0.053094062954187,-0.119311667978764) * MODEL1_texOff(vec2(0,0));
res += mat4(0.032710671424866,-0.095866240561008,-0.060528397560120,0.033026251941919,-0.000483135430841,-0.003558707656339,0.103010691702366,0.036925360560417,0.044865224510431,0.112917959690094,0.256799936294556,0.189651340246201,0.090266689658165,-0.097811996936798,-0.094211965799332,-0.091101042926311) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.093910276889801,0.013084012083709,0.019074726849794,0.007010133937001,-0.003838026663288,0.095963805913925,0.055826138705015,0.008328360505402,0.109315857291222,-0.121370740234852,-0.144139379262924,0.005473584402353,-0.177157878875732,-0.096760153770447,0.205656364560127,0.045060921460390) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.015051942318678,-0.054243858903646,-0.066242039203644,0.080284819006920,0.073195978999138,-0.009584160521626,0.122512750327587,-0.010493174195290,-0.023611167445779,0.032935973256826,0.001154830912128,0.206526532769203,0.049505446106195,0.017105823382735,0.078329205513000,-0.165323466062546) * MODEL1_texOff(vec2(1,0));
res += mat4(0.121476106345654,-0.106065943837166,0.061371508985758,-0.166428387165070,0.015004183165729,0.054402146488428,0.017460644245148,0.005279791075736,-0.003603339660913,0.017731161788106,-0.055137969553471,-0.009299633093178,0.156843408942223,0.045420631766319,-0.156434267759323,-0.072601959109306) * MODEL1_texOff(vec2(1,1));
res += mat4(0.059902623295784,-0.172146245837212,-0.002916714409366,-0.039412252604961,-0.053510367870331,0.209063500165939,0.041065763682127,-0.070626802742481,-0.237789273262024,0.124748036265373,0.141559183597565,-0.021181162446737,0.009160540066659,0.011019047349691,-0.035754099488258,0.021432185545564) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.067786999046803,-0.017367701977491,0.078317195177078,0.042286369949579,-0.137172982096672,0.332027375698090,-0.048048019409180,0.018754681572318,0.070611596107483,0.088041409850121,0.025442978367209,-0.030810836702585,-0.046063020825386,0.044656250625849,-0.053446736186743,0.034673139452934) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.084804996848106,-0.103454172611237,0.009338659234345,0.060900237411261,-0.066309794783592,0.161938786506653,-0.074164204299450,0.099497929215431,0.071983896195889,0.172590777277946,0.009805772453547,-0.080092206597328,0.005382255651057,-0.046973548829556,0.004580507054925,0.003412672085688) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.036156076937914,0.064799316227436,0.006996962707490,-0.056865327060223,-0.113259658217430,0.003445710288361,0.010878078639507,0.079473301768303,-0.326779961585999,0.029587306082249,0.161658272147179,0.007808745838702,-0.026044387370348,0.015518180094659,-0.063900247216225,0.014995939098299) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.056273460388184,0.174662977457047,0.013721521012485,-0.024081913754344,-0.144739270210266,0.250097572803497,0.079372778534889,0.210278406739235,0.160613626241684,0.006120869424194,-0.088024824857712,0.002369745401666,-0.079349383711815,-0.050083458423615,-0.067716695368290,0.078225873410702) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.017144815996289,-0.163006290793419,0.026954732835293,0.132876694202423,-0.109434016048908,0.293031275272369,0.031019952148199,0.017234766855836,0.032090663909912,-0.027039235457778,-0.056587111204863,-0.149576961994171,-0.057404521852732,-0.067403331398964,-0.020752159878612,0.089627020061016) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.016121763736010,-0.064811788499355,0.023794196546078,-0.000959440541919,-0.248491734266281,0.250722646713257,0.020687762647867,0.159088253974915,-0.145335525274277,0.275923997163773,0.001650076243095,0.089180760085583,-0.015027318149805,-0.002893978962675,-0.048687618225813,0.026049779728055) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.041801299899817,0.016626084223390,0.042339518666267,-0.007190057076514,-0.126836121082306,0.244500830769539,-0.059235043823719,0.107260093092918,0.029564945027232,-0.160666853189468,-0.182809218764305,-0.018452083691955,-0.007304479833692,-0.085950545966625,-0.043702188879251,0.021885249763727) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.000730817555450,-0.012490465305746,0.010150143876672,-0.008094222284853,-0.071985192596912,0.139937222003937,0.021459365263581,0.185117989778519,0.031402070075274,0.049273174256086,-0.003074449254200,0.069938905537128,-0.010608053766191,-0.004729163367301,-0.030243575572968,0.056630730628967) * MODEL2_texOff(vec2(1,1));
res += mat4(0.047823362052441,0.214216351509094,0.115650311112404,-0.019003512337804,-0.027750376611948,-0.108710616827011,-0.072882339358330,0.029755884781480,-0.128294765949249,0.065087281167507,-0.077720001339912,0.068334758281708,0.158757567405701,0.227995857596397,0.090975880622864,-0.068518631160259) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.200925096869469,0.000335450778948,0.086057402193546,0.309373587369919,-0.221710190176964,-0.241629838943481,-0.023749515414238,0.032706167548895,0.105391874909401,-0.057390477508307,-0.138183906674385,0.014952252618968,0.164933070540428,0.169520929455757,-0.047623872756958,-0.019789038226008) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.288790225982666,-0.256135731935501,0.015457412227988,0.032331794500351,-0.054483510553837,0.010268061421812,0.156015709042549,0.031270440667868,0.141852721571922,-0.036735512316227,-0.026746200397611,0.140545994043350,0.075016297399998,0.025501037016511,0.075507134199142,0.013152868486941) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.141271129250526,-0.048939723521471,0.014669300056994,0.075208023190498,-0.090832419693470,-0.033656492829323,-0.022686472162604,0.001065939781256,0.081128515303135,-0.019785474985838,0.021497560665011,0.014982685446739,-0.041762463748455,-0.044148735702038,0.038020972162485,-0.044525898993015) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.027166027575731,0.020834116265178,0.014540793374181,0.113056756556034,-0.328786313533783,0.013346422463655,0.004003349691629,0.006911886390299,0.108847334980965,0.029906390234828,0.001180064631626,0.073524087667465,0.063453733921051,-0.064802229404449,-0.005533101037145,0.016082849353552) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.116783246397972,-0.136991724371910,-0.153754338622093,0.049666129052639,-0.066402338445187,-0.158893018960953,0.103560835123062,-0.042919103056192,0.215328544378281,-0.092910155653954,0.062938317656517,-0.110729843378067,-0.290833562612534,0.134944409132004,0.058280546218157,0.009124838747084) * MODEL3_texOff(vec2(0,1));
res += mat4(0.050556600093842,-0.035554070025682,0.022823337465525,0.133589312434196,-0.194476544857025,-0.055706799030304,0.020674521103501,0.042668499052525,-0.089058622717857,-0.065676920115948,0.073183804750443,-0.029985373839736,0.114359267055988,-0.057982914149761,-0.044781215488911,-0.097784228622913) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.087461188435555,0.217131748795509,-0.019062893465161,0.081781767308712,-0.070136815309525,0.102294653654099,-0.016561983153224,-0.055050946772099,0.118275284767151,0.043373763561249,0.039326317608356,-0.065405048429966,0.144696652889252,-0.145257696509361,-0.094509571790695,0.138871133327484) * MODEL3_texOff(vec2(1,0));
res += mat4(0.077828116714954,0.009207638911903,-0.024961313232780,0.163285180926323,-0.205181777477264,-0.127207562327385,-0.035365927964449,-0.025149710476398,0.058814611285925,0.020608657971025,0.066560797393322,-0.062250997871161,-0.042846217751503,0.213702812790871,0.051068976521492,0.036085069179535) * MODEL3_texOff(vec2(1,1));
res += mat4(0.051703471690416,0.017690086737275,-0.017662489786744,-0.006652556359768,0.006453396752477,-0.026338486000896,0.066996335983276,-0.012258326634765,0.036224402487278,0.061714749783278,0.007208668626845,-0.181262060999870,-0.096596807241440,-0.008555727079511,-0.062159739434719,-0.052435845136642) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.008998353965580,0.017212897539139,0.211743921041489,-0.131706118583679,-0.148384317755699,0.056808862835169,-0.052695531398058,-0.031307499855757,0.036930959671736,-0.203913435339928,0.042733177542686,-0.159543454647064,0.099555760622025,0.025383422151208,-0.145905330777168,-0.038107573986053) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.058917157351971,0.045936871320009,0.036607600748539,-0.001864838530309,-0.052665401250124,0.199997305870056,-0.060239236801863,-0.010312282480299,0.037165641784668,-0.028656460344791,-0.030020041391253,-0.152165845036507,0.009896986186504,-0.054044745862484,0.033148590475321,0.060300514101982) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.107251502573490,0.001147154602222,-0.241626590490341,0.050520941615105,0.023003056645393,0.259314358234406,-0.031618367880583,-0.222934395074844,-0.122222505509853,-0.188845351338387,0.122895896434784,-0.214972883462906,-0.104690127074718,-0.080043502151966,-0.075054593384266,-0.113214358687401) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.130192086100578,0.072139732539654,-0.024315517395735,-0.028786525130272,-0.253413170576096,-0.066659644246101,-0.128869906067848,-0.073658354580402,-0.069907359778881,-0.244891822338104,0.244035020470619,-0.061048615723848,-0.083580709993839,-0.247782304883003,0.404117435216904,-0.010678648017347) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.044795919209719,-0.144255712628365,-0.062409486621618,-0.058708883821964,0.015562293119729,-0.169736146926880,0.088994495570660,0.042284790426493,0.014829824678600,-0.127092346549034,0.074895836412907,-0.127991244196892,-0.048091087490320,-0.002535749459639,0.133758872747421,0.191565856337547) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.066776931285858,-0.092721514403820,-0.141549110412598,0.119948752224445,0.224155128002167,0.153878912329674,0.031161556020379,-0.099275156855583,0.062398653477430,-0.198213025927544,0.060928180813789,-0.092554226517677,0.027379896491766,0.020267089828849,-0.064673312008381,-0.021754767745733) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.037441011518240,-0.122361920773983,-0.222876384854317,0.097666844725609,-0.117233805358410,0.340028882026672,-0.067485570907593,-0.037691708654165,-0.058872606605291,-0.053563229739666,0.011345902457833,-0.061611715704203,-0.128353044390678,0.056660957634449,0.032392747700214,0.069031484425068) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.031518876552582,0.119036965072155,0.122465774416924,0.088582664728165,0.093998409807682,-0.155112102627754,-0.031956613063812,-0.017359182238579,0.094099394977093,0.025130705907941,-0.022938197478652,-0.116236396133900,-0.081738896667957,0.030014773830771,-0.098091572523117,0.209059461951256) * MODEL4_texOff(vec2(1,1));
res += mat4(0.106081247329712,0.033102661371231,-0.033367671072483,-0.027124147862196,0.071434557437897,0.095802672207355,0.020491069182754,-0.080788604915142,0.082108542323112,0.284311980009079,-0.111929975450039,-0.052324563264847,0.237627655267715,-0.355851501226425,0.320985078811646,0.170733809471130) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.191301837563515,0.065141066908836,0.066591069102287,-0.071931593120098,0.186563104391098,-0.052677795290947,-0.033485248684883,-0.228321790695190,-0.020431382581592,0.045499291270971,0.041236504912376,0.014222413301468,0.152226686477661,-0.058463439345360,0.146523401141167,0.124013543128967) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.179923832416534,0.210469603538513,0.012210747227073,0.076828047633171,0.178780168294907,-0.157338201999664,-0.014157661236823,-0.008711764588952,-0.257566034793854,0.339804023504257,0.027115156874061,0.018483852967620,0.169468924403191,-0.072161771357059,0.073928922414780,0.089886315166950) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.201977327466011,0.033908784389496,-0.007866987027228,-0.028941756114364,0.089560702443123,0.190529823303223,-0.176892325282097,-0.009257231839001,0.034854844212532,0.274114876985550,0.065518558025360,0.061415769159794,0.226190403103828,0.108748175203800,0.147746846079826,0.112372905015945) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.047649528831244,0.082201972603798,0.063412033021450,0.001793617266230,0.159173592925072,0.202400609850883,-0.047335851937532,0.097113810479641,0.120802171528339,0.204773649573326,-0.052931912243366,0.064169868826866,0.020003048703074,0.026538545265794,0.155212566256523,0.021246993914247) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.097253620624542,0.007335419766605,0.098586775362492,0.155770003795624,0.096702791750431,0.020458176732063,0.099061690270901,0.000050427388487,0.079934924840927,0.179528743028641,-0.027258371934295,-0.011957044713199,0.182710722088814,0.168323308229446,0.082106813788414,-0.082405209541321) * MODEL5_texOff(vec2(0,1));
res += mat4(0.004419045988470,0.068624384701252,-0.008281564339995,-0.080488972365856,-0.125713363289833,0.009875469841063,-0.057370301336050,0.103591866791248,-0.023788832128048,0.181766077876091,0.012286917306483,0.008867008611560,0.146811082959175,0.123790673911572,0.171348348259926,-0.051723103970289) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.295406043529510,-0.035179689526558,0.242315784096718,0.049131009727716,-0.152214989066124,0.064818173646927,0.071743592619896,-0.040588822215796,0.118717081844807,0.280151873826981,0.046303570270538,-0.027652775868773,-0.000952427566517,0.048772882670164,0.195760309696198,-0.009334607049823) * MODEL5_texOff(vec2(1,0));
res += mat4(0.124339707195759,0.056172940880060,-0.065491430461407,0.017593054100871,0.081508137285709,0.017849775031209,0.162250295281410,-0.026830255985260,-0.093457534909248,0.204869329929352,0.060888469219208,0.043840676546097,0.023593939840794,0.082528874278069,0.219329208135605,-0.298783153295517) * MODEL5_texOff(vec2(1,1));
res += mat4(0.051652338355780,0.045782994478941,-0.199313625693321,0.018237354233861,0.133596837520599,0.028644127771258,-0.186373949050903,0.090934678912163,-0.063994280993938,-0.202692463994026,0.121946118772030,-0.083652704954147,-0.039890553802252,0.094781778752804,0.128432974219322,-0.041705563664436) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.102517887949944,0.025405982509255,-0.183963507413864,0.090614669024944,-0.087193734943867,0.293332338333130,-0.237884908914566,0.039329782128334,-0.079848028719425,-0.332435876131058,0.145250052213669,0.023155480623245,-0.115864984691143,-0.003509109141305,0.038279909640551,-0.064097762107849) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.078090026974678,0.043925926089287,-0.195764973759651,0.005101698450744,-0.122278772294521,0.091795265674591,-0.011025521904230,0.038951467722654,0.071150459349155,-0.226239025592804,-0.017907897010446,-0.033621143549681,0.092554464936256,0.032191462814808,-0.015637589618564,-0.113603174686432) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.000918209087104,0.028937714174390,-0.246913015842438,0.066711828112602,0.058213807642460,0.100205719470978,0.011814926750958,0.164220914244652,-0.041722681373358,-0.080816008150578,0.091812752187252,-0.211261525750160,0.066576458513737,0.135944724082947,0.109562464058399,-0.118808947503567) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.037595551460981,0.025460099801421,-0.222492665052414,0.063767716288567,0.104230456054211,0.088688686490059,-0.079229295253754,0.112387254834175,0.177089720964432,0.001305990503170,0.026000922545791,0.001845891703852,-0.038213960826397,0.067512840032578,0.167471125721931,0.036575660109520) * MODEL6_texOff(vec2(0,0));
res += mat4(0.041576609015465,-0.037394162267447,-0.162245094776154,0.025700606405735,-0.088492497801781,0.194625452160835,-0.078516729176044,0.151668146252632,0.051879070699215,-0.081855088472366,0.140263989567757,-0.019153418019414,-0.086778357625008,-0.046858549118042,-0.053173169493675,-0.112773388624191) * MODEL6_texOff(vec2(0,1));
res += mat4(0.037639599293470,-0.011329432949424,-0.220215260982513,0.044084072113037,0.008092924021184,0.148782417178154,0.082906462252140,-0.050736542791128,0.134844228625298,-0.121873579919338,0.050961349159479,-0.126792624592781,-0.065493345260620,-0.066440977156162,0.036476708948612,-0.034836277365685) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.014041854068637,-0.011763519607484,-0.057952184230089,-0.025380762293935,0.268288433551788,-0.017808362841606,0.045782890170813,-0.051149193197489,0.055109355598688,-0.316588848829269,0.108964584767818,-0.022425480186939,-0.013823858462274,0.008204440586269,0.046552378684282,-0.021601606160402) * MODEL6_texOff(vec2(1,0));
res += mat4(0.025536928325891,0.057978689670563,-0.054145526140928,-0.017377881333232,0.047802813351154,-0.001424209447578,-0.003192713716999,0.215995416045189,0.209184631705284,-0.203015640377998,0.077390082180500,-0.057636748999357,-0.078180976212025,-0.021191002801061,0.005449849180877,-0.318659394979477) * MODEL6_texOff(vec2(1,1));
res += FEATURE5_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.694455385208130,0.059300478547812,0.115755982697010,0.954933106899261) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!BIND FEATURE6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_4x_Photo] mapping 4_6

vec4 hook()
{
vec4 res = vec4(-0.150787889957428,-0.106829509139061,-0.035938493907452,0.050728287547827);
res += mat4(0.069073662161827,-0.028139369562268,-0.028645697981119,0.051687486469746,0.077810622751713,0.134941771626472,-0.001608404680155,-0.055819150060415,-0.112269200384617,-0.017344510182738,0.033786144107580,-0.049124252051115,0.066722624003887,0.035488411784172,0.096902810037136,0.095743648707867) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.167384982109070,-0.051625601947308,-0.209634155035019,-0.108903989195824,0.172365918755531,0.107305191457272,-0.069790728390217,-0.035790037363768,0.018882853910327,0.061806064099073,0.049893829971552,0.032134141772985,-0.156853988766670,-0.018502719700336,-0.027045834809542,0.010872600600123) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.015065591782331,-0.010308715514839,-0.031865518540144,0.015373710542917,0.117744326591492,0.062086120247841,-0.076603598892689,0.025032822042704,-0.003403426380828,-0.055878657847643,0.000024056835173,0.009974688291550,0.136873096227646,0.085354879498482,0.023830218240619,-0.143010318279266) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.086164020001888,-0.041492674499750,0.001994798425585,0.080456741154194,-0.074218735098839,-0.012527413666248,-0.077562376856804,0.057740963995457,-0.034030966460705,0.266041040420532,0.094055198132992,-0.202651754021645,0.125107228755951,0.039559468626976,-0.004935915116221,0.191975459456444) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.160143718123436,0.012160911224782,0.014108179137111,-0.091178715229034,-0.047697287052870,-0.152047336101532,-0.059772696346045,0.014052525162697,-0.019462380558252,0.124789640307426,-0.258986532688141,0.375372827053070,-0.040457192808390,-0.101720802485943,-0.146400406956673,-0.384802281856537) * MODEL1_texOff(vec2(0,0));
res += mat4(0.060935046523809,0.115885935723782,-0.063990868628025,-0.042807262390852,0.082503400743008,0.024008642882109,-0.020876942202449,-0.022652789950371,-0.084336504340172,0.081368736922741,-0.023094948381186,0.096662595868111,0.138966366648674,-0.039630781859159,0.045512091368437,-0.150840431451797) * MODEL1_texOff(vec2(0,1));
res += mat4(-0.070678524672985,0.066277332603931,-0.007740442641079,-0.047440249472857,-0.025475665926933,0.029247527942061,0.046789996325970,-0.023416507989168,-0.132106006145477,-0.212421581149101,-0.015798214823008,-0.045780036598444,0.056368030607700,0.154252439737320,-0.012738116085529,-0.014267404563725) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.090792991220951,0.061031222343445,-0.018214765936136,-0.111916460096836,-0.093032889068127,0.143412411212921,-0.003985116723925,0.089855246245861,-0.055750466883183,0.038409233093262,0.033146284520626,-0.108953975141048,0.079542741179466,-0.309874445199966,-0.058336939662695,-0.321413815021515) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.060478992760181,-0.013992099091411,-0.002436943585053,-0.066024117171764,-0.078609064221382,-0.072316437959671,-0.134702637791634,0.003580036805943,-0.158632442355156,0.018560798838735,-0.120496951043606,-0.038837220519781,0.030627898871899,0.002629152731970,-0.002867767354473,-0.078948758542538) * MODEL1_texOff(vec2(1,1));
res += mat4(0.034203615039587,0.033334124833345,0.012204688973725,-0.014330230653286,-0.035050120204687,-0.133034572005272,0.017184823751450,-0.110494785010815,0.047296430915594,-0.052978210151196,-0.023703448474407,0.194952175021172,0.003866311395541,-0.074746467173100,0.042332414537668,-0.026986708864570) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.015234606340528,0.093088723719120,0.011291479691863,-0.015532218851149,0.118154473602772,-0.056572917848825,0.062999986112118,0.034101460129023,0.089206993579865,0.071292966604233,-0.235248863697052,0.150119930505753,-0.089103087782860,-0.079644307494164,0.028103278949857,0.026551375165582) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.006597976665944,-0.123368702828884,0.030081652104855,0.024841587990522,0.129632487893105,0.117470920085907,0.175294920802116,0.086346991360188,0.154196947813034,0.093504488468170,-0.034772936254740,0.030637130141258,0.034519370645285,-0.079911306500435,0.021373480558395,-0.051856484264135) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.103637479245663,-0.043907519429922,-0.046322915703058,-0.093544550240040,0.023566668853164,-0.104871839284897,-0.138403192162514,0.067994549870491,0.011833829805255,-0.038451112806797,-0.141970366239548,0.012917880900204,-0.045887257903814,-0.053131282329559,0.031498081982136,0.027232144027948) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.002861774992198,0.026762917637825,-0.031362168490887,0.123159565031528,0.103170804679394,-0.104622222483158,-0.009449311532080,0.096711911261082,0.013869517482817,0.047764368355274,-0.201298445463181,0.087813891470432,-0.114066608250141,-0.008033603429794,-0.022782664746046,0.001367424847558) * MODEL2_texOff(vec2(0,0));
res += mat4(0.093665227293968,-0.014323616400361,-0.010695151053369,-0.103573702275753,-0.034386627376080,-0.008787990547717,0.205682411789894,0.105703040957451,-0.070562325417995,0.012317758984864,0.033108953386545,-0.060806836932898,-0.025575244799256,-0.030318826436996,0.027371494099498,-0.044574383646250) * MODEL2_texOff(vec2(0,1));
res += mat4(0.049268435686827,0.114538148045540,-0.015499475412071,-0.033128872513771,0.012347012758255,-0.143957898020744,-0.025291280820966,0.306084305047989,0.020242737606168,-0.088338829576969,-0.067262127995491,0.274407267570496,-0.018835334107280,-0.059437010437250,-0.011082331649959,0.027921810746193) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.072326675057411,0.001760174287483,-0.047663241624832,0.032299879938364,0.175432443618774,-0.250653952360153,-0.091508328914642,-0.004869403317571,0.096800684928894,-0.083213016390800,-0.061710536479950,0.049110598862171,0.000623459811322,-0.043631352484226,-0.011529272422194,-0.037009928375483) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.009527446702123,0.000079539910075,-0.054458178579807,0.017838712781668,-0.139888092875481,0.024342304095626,-0.039576999843121,0.070867940783501,-0.152958899736404,0.021299602463841,-0.018247166648507,0.027761038392782,-0.005103453062475,-0.084836073219776,0.042642433196306,-0.005757852457464) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.054339349269867,-0.061328113079071,0.085357435047626,-0.072989009320736,-0.053164642304182,0.319861233234406,0.159701734781265,-0.058701276779175,-0.112690150737762,0.232843160629272,-0.059240758419037,-0.101274766027927,-0.057295233011246,-0.102182351052761,-0.052041187882423,0.069388203322887) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.221312269568443,0.004761991091073,-0.054139342159033,0.289168328046799,0.121266320347786,0.205082669854164,0.089599907398224,0.157060727477074,-0.024462869390845,-0.059539265930653,-0.076946660876274,0.205206066370010,0.031428169459105,-0.032137472182512,-0.052211731672287,0.106654360890388) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.252671867609024,0.115311205387115,-0.031939022243023,-0.113370627164841,0.145002320408821,-0.102068886160851,-0.045175425708294,-0.161403611302376,0.061085883527994,0.101371765136719,-0.020866326987743,0.028834389522672,0.090265303850174,0.114120349287987,0.042043596506119,-0.059310685843229) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.044655572623014,-0.167395442724228,0.033374674618244,-0.100357651710510,0.086700044572353,0.054000802338123,-0.029082112014294,-0.071176044642925,-0.003962754737586,0.118320994079113,-0.010633114725351,0.172504439949989,-0.220584407448769,-0.185041278600693,0.044256541877985,-0.006281100679189) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.105541348457336,0.116847045719624,0.008220087736845,0.099427260458469,-0.076860256493092,0.263708919286728,0.061791613698006,-0.294831007719040,-0.058851316571236,0.042113162577152,-0.021238991990685,-0.264927625656128,-0.114610441029072,-0.075713843107224,-0.089353598654270,-0.034968566149473) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.126340284943581,0.050884239375591,-0.060377996414900,-0.125558823347092,-0.013499926775694,0.017387628555298,0.009092227555811,-0.172090217471123,0.126191049814224,-0.015861442312598,0.097575105726719,-0.072070375084877,-0.104273974895477,-0.144271522760391,0.157685369253159,0.082134366035461) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.002797674853355,-0.084420286118984,0.009785318747163,0.044892787933350,-0.062416505068541,-0.124081470072269,0.014499380253255,-0.050017040222883,-0.198279544711113,0.228605747222900,-0.000336638389854,-0.208851784467697,-0.061051771044731,0.262167096138000,-0.051276430487633,0.053328398615122) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.003967737313360,0.083255626261234,-0.010021970607340,0.067090630531311,-0.020729249343276,-0.199372723698616,-0.013256520032883,0.048008281737566,0.106655433773994,0.107967980206013,0.028061922639608,-0.013667058199644,-0.009050861932337,0.112297222018242,-0.005387410521507,0.047713059931993) * MODEL3_texOff(vec2(1,0));
res += mat4(0.045808658003807,-0.031437303870916,-0.062603361904621,0.074762590229511,-0.140545040369034,0.017853271216154,0.006026712711900,-0.084375262260437,-0.005168350413442,-0.075837559998035,0.039002340286970,-0.151695758104324,0.048851471394300,0.069153591990471,-0.081887654960155,0.123727023601532) * MODEL3_texOff(vec2(1,1));
res += mat4(0.062403179705143,0.001387094263919,-0.003224676009268,-0.147848412394524,-0.061337538063526,0.113268285989761,0.046064119786024,0.012074426747859,0.076741054654121,0.014583909884095,0.049685619771481,0.164487227797508,0.066210992634296,0.097617477178574,-0.014893909916282,-0.074445575475693) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.001704643247649,0.087551914155483,-0.169989526271820,-0.249858558177948,0.125355109572411,-0.072867870330811,-0.033886734396219,-0.206097841262817,0.205397188663483,0.067634083330631,0.007142488844693,0.035600766539574,0.039515860378742,-0.183504566550255,0.067121475934982,-0.332565903663635) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.079963997006416,-0.064996838569641,0.143366679549217,0.043960466980934,0.032318688929081,0.016698928549886,-0.010441843420267,-0.045682121068239,0.044805727899075,-0.072592034935951,0.010342909954488,0.028556814417243,-0.096420243382454,-0.086761653423309,0.149312645196915,0.075329251587391) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.076299093663692,-0.103615976870060,0.028537269681692,-0.084285572171211,0.099663831293583,0.039381884038448,-0.028569074347615,-0.079672388732433,0.086034752428532,0.008161711506546,-0.057969361543655,0.025405921041965,0.056307315826416,0.048917081207037,0.019554911181331,0.041862756013870) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.131035476922989,-0.072688542306423,0.067999951541424,0.143112570047379,0.020198749378324,0.140735357999802,-0.107923276722431,0.144649833440781,0.125547394156456,-0.057738613337278,-0.022650718688965,0.080026179552078,0.092805080115795,-0.086849905550480,-0.073994606733322,0.084647543728352) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.045904092490673,0.050130635499954,-0.051624782383442,-0.003368595847860,-0.098569020628929,0.148294180631638,-0.074862100183964,-0.010058213025331,-0.092133097350597,0.027875836938620,-0.086696036159992,-0.013196908868849,-0.043904565274715,-0.087511353194714,0.215935155749321,0.081784769892693) * MODEL4_texOff(vec2(0,1));
res += mat4(0.041980952024460,0.054964285343885,0.028497440740466,0.054406642913818,-0.073516353964806,-0.260389626026154,-0.058592125773430,0.076773531734943,0.002584125380963,-0.097982354462147,-0.001459007966332,0.006592222489417,-0.030029965564609,-0.004472393076867,0.042602840811014,-0.184841334819794) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.098785124719143,-0.051613263785839,0.008051620796323,0.060956407338381,-0.226025104522705,-0.048956524580717,0.044702548533678,-0.134458780288696,0.073090523481369,0.040990095585585,0.064016804099083,0.002920613856986,0.008998709730804,0.050971254706383,0.154889404773712,-0.180837363004684) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.004080601967871,0.084066532552242,0.069397442042828,-0.036472044885159,0.049568943679333,-0.014144054614007,0.035767041146755,-0.092778183519840,0.060465473681688,-0.031121464446187,-0.026193797588348,-0.013235497288406,0.045555535703897,-0.087209925055504,0.074742406606674,-0.067933164536953) * MODEL4_texOff(vec2(1,1));
res += mat4(0.043498396873474,0.063733831048012,-0.144571229815483,0.131030306220055,-0.022196164354682,0.164202183485031,0.010206541977823,-0.043652001768351,0.184136986732483,-0.066018156707287,0.065108723938465,0.030915251001716,-0.075998596847057,0.048772949725389,0.045223813503981,-0.490879297256470) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.000242204303504,0.014932363294065,0.031531546264887,-0.066103115677834,0.020583365112543,-0.075945705175400,-0.034938104450703,0.006083393469453,0.082501441240311,-0.114067785441875,-0.066924341022968,0.172178700566292,0.100664302706718,0.034653250128031,0.207766070961952,0.205261215567589) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.068448245525360,-0.070073351264000,0.019639609381557,-0.020499937236309,-0.067025251686573,0.231695339083672,0.003851452842355,0.014159363694489,0.046088192611933,-0.182889655232430,-0.088680841028690,-0.097612656652927,-0.006591640412807,0.150062322616577,-0.211065649986267,-0.053480818867683) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.009008109569550,0.003845842787996,-0.053292058408260,-0.090083412826061,-0.299973100423813,0.377342909574509,0.030886102467775,0.320402711629868,-0.011109353043139,-0.049911979585886,0.043674360960722,-0.139957159757614,0.047706533223391,0.060585007071495,0.041840203106403,-0.131031244993210) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.067760184407234,0.145967349410057,-0.126724243164063,0.017359428107738,-0.178005307912827,0.471435129642487,-0.061153139919043,-0.026806913316250,0.078667536377907,0.006892776582390,0.030798552557826,-0.065996542572975,0.045888070017099,-0.024728273972869,0.060090582817793,0.147818267345428) * MODEL5_texOff(vec2(0,0));
res += mat4(0.062446326017380,-0.021852737292647,-0.060858450829983,-0.042472697794437,-0.055739697068930,0.170346647500992,0.189716607332230,-0.009138304740191,-0.029874058440328,-0.083426520228386,-0.135327845811844,-0.033936932682991,0.156808614730835,-0.001109740231186,-0.089156165719032,-0.266428470611572) * MODEL5_texOff(vec2(0,1));
res += mat4(0.048110198229551,0.018717814236879,0.093609005212784,-0.270235210657120,-0.112935945391655,0.408038437366486,-0.107867643237114,-0.178191542625427,0.162227764725685,-0.213605567812920,0.103862248361111,-0.000362923281500,0.051625255495310,-0.035005763173103,-0.031532254070044,0.048371117562056) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.205829292535782,0.161867693066597,0.062532253563404,0.029527723789215,-0.029801934957504,-0.135429710149765,-0.011244746856391,0.146601587533951,0.021697344258428,0.095353662967682,0.119969628751278,-0.065964341163635,0.335996448993683,0.042934089899063,0.049253512173891,-0.192599713802338) * MODEL5_texOff(vec2(1,0));
res += mat4(0.034824974834919,0.059596214443445,-0.040881074965000,0.110213130712509,-0.101990155875683,0.013857520185411,-0.011407633312047,0.194997742772102,-0.073518060147762,0.078168436884880,0.094740189611912,-0.016020368784666,0.093981944024563,-0.018123075366020,0.028171729296446,-0.277953088283539) * MODEL5_texOff(vec2(1,1));
res += mat4(0.027776166796684,-0.155653610825539,-0.045851938426495,-0.033430542796850,0.181095838546753,-0.095776751637459,-0.057854991406202,-0.077311001718044,-0.142000392079353,0.316613078117371,-0.136489376425743,0.064749881625175,0.135661825537682,-0.038851160556078,-0.030391922220588,0.052177485078573) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.016229061409831,-0.064025014638901,0.018650194630027,0.039439808577299,0.076923005282879,0.128840208053589,-0.067132242023945,-0.034328371286392,-0.051579058170319,0.123476244509220,-0.144261866807938,-0.209692239761353,0.098299480974674,-0.194391220808029,-0.059233997017145,0.024322427809238) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.043154243379831,-0.139087334275246,0.001375093241222,0.088550336658955,0.088438943028450,0.082005441188812,0.000991249340586,-0.029166964814067,-0.146792903542519,-0.028867749497294,0.141039252281189,0.102537848055363,0.112674616277218,-0.179759562015533,-0.064357332885265,-0.070630326867104) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.072345778346062,-0.029960801824927,0.009199595078826,-0.003641587449238,-0.100157499313354,-0.161542683839798,-0.096473678946495,-0.037634924054146,-0.105969995260239,-0.321027427911758,-0.054366122931242,-0.057655144482851,0.008857493288815,0.064408443868160,0.109479188919067,0.030290769413114) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.016315793618560,0.060166794806719,0.056975729763508,0.022597208619118,-0.067174188792706,0.132995873689651,-0.017011895775795,-0.056419573724270,-0.032802879810333,0.111015573143959,0.113216303288937,-0.041410572826862,0.130274951457977,-0.090373076498508,-0.062546692788601,0.044672943651676) * MODEL6_texOff(vec2(0,0));
res += mat4(0.169949501752853,-0.104967273771763,-0.037617836147547,0.074160709977150,-0.206572800874710,0.136488869786263,0.048136357218027,0.223403885960579,-0.074025198817253,0.079643987119198,-0.103868782520294,-0.002526950556785,0.007117890287191,0.084137268364429,-0.015400285832584,-0.116442732512951) * MODEL6_texOff(vec2(0,1));
res += mat4(0.052199088037014,-0.035601835697889,-0.015188796445727,0.018233297392726,0.000222994931391,-0.029938083142042,-0.129525199532509,0.035581473261118,-0.144236803054810,0.072543919086456,-0.002812051679939,-0.036093886941671,-0.081956781446934,0.010870547033846,-0.004397660959512,-0.008533041924238) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.021648557856679,-0.040621802210808,-0.006511574145406,0.051454812288284,0.012495176866651,0.013868049718440,-0.199123740196228,0.163004681468010,-0.134443491697311,0.219709962606430,-0.019977733492851,0.028067480772734,-0.072144001722336,-0.160538896918297,0.045374870300293,-0.038215961307287) * MODEL6_texOff(vec2(1,0));
res += mat4(0.144056200981140,0.055464610457420,0.065128780901432,0.026862632483244,0.089427836239338,-0.075208492577076,-0.142554312944412,0.175027817487717,0.089981071650982,-0.250801950693130,-0.045633140951395,0.092586897313595,-0.105208784341812,-0.010888580232859,-0.124313637614250,-0.096586197614670) * MODEL6_texOff(vec2(1,1));
res += FEATURE6_texOff(0);
res = max(res, vec4(0.0)) + vec4(0.498134911060333,0.025474091991782,0.956752300262451,0.801206529140472) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_4x_Photo] mapping 5_1

vec4 hook()
{
vec4 res = vec4(-0.191108718514442,-0.600207567214966,-0.046354349702597,0.091059260070324);
res += mat4(0.175379291176796,0.223620012402534,0.018292764201760,0.094118960201740,0.082041718065739,-0.068605639040470,0.004381915554404,0.071122296154499,-0.143855616450310,-0.058544795960188,0.299829989671707,-0.024255979806185,-0.045178405940533,-0.043613359332085,-0.054218828678131,0.114337421953678) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.155274420976639,0.136803671717644,-0.087462790310383,-0.070595286786556,-0.035686094313860,-0.098421886563301,0.127920940518379,-0.075600199401379,-0.158546641469002,-0.198374211788177,0.477539479732513,-0.133982136845589,-0.007089832797647,0.089424677193165,0.071452952921391,-0.032469213008881) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.082839131355286,-0.087131097912788,-0.005303858779371,-0.040008142590523,-0.029009655117989,-0.093328185379505,-0.064911663532257,-0.048264831304550,-0.078567966818810,-0.065917000174522,-0.094805806875229,0.083789400756359,0.032755013555288,-0.189343839883804,-0.298875391483307,0.025538211688399) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.035996917635202,0.121959343552589,-0.096949458122253,-0.033230647444725,0.179372668266296,0.049180533736944,-0.153954282402992,0.027798769995570,0.065220803022385,0.125627875328064,-0.140271618962288,-0.155966162681580,-0.042509578168392,0.066638328135014,-0.108971692621708,0.138820856809616) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.048665691167116,-0.024313589558005,0.083616912364960,-0.020739780738950,0.192880675196648,0.228132292628288,-0.419325858354568,-0.095636367797852,0.315275162458420,0.316054731607437,-0.492414563894272,0.289479494094849,-0.047257237136364,0.078138768672943,-0.101979523897171,-0.031255889683962) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.091557353734970,-0.081468947231770,0.004793646745384,0.046647775918245,-0.099942691624165,-0.042230375111103,-0.026675112545490,0.097440652549267,-0.337754458189011,-0.223648577928543,0.144438803195953,-0.170343413949013,-0.068447217345238,-0.143864318728447,-0.082165405154228,0.128608509898186) * MODEL7_texOff(vec2(0,1));
res += mat4(0.069261200726032,-0.038582451641560,0.001980622066185,-0.101165771484375,-0.082172162830830,-0.107333704829216,-0.046181119978428,0.045282825827599,0.153281450271606,-0.026017045602202,0.012258405797184,0.019638370722532,0.036712270230055,0.071434222161770,-0.023592038080096,0.046389382332563) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.100436158478260,-0.176766887307167,-0.026158573105931,0.039750218391418,0.022059742361307,-0.055750563740730,-0.086893483996391,0.028802899643779,-0.069208249449730,0.105957023799419,0.002733830129728,-0.451901316642761,-0.007072955835611,0.049660973250866,-0.020717943087220,0.015175489708781) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.117417104542255,-0.303730607032776,0.080770663917065,0.221447154879570,-0.162837579846382,-0.075955450534821,0.041460692882538,0.113670453429222,0.133345633745193,0.019426012411714,-0.075466156005859,0.036275241523981,-0.075001396238804,-0.016382630914450,-0.021647628396749,0.057786110788584) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.099172450602055,-0.055172689259052,-0.088591851294041,-0.023826243355870,-0.059060163795948,-0.012167206965387,0.058771159499884,-0.031697534024715,0.034808471798897,-0.019661933183670,0.046600136905909,-0.035065151751041,0.023402359336615,0.037436332553625,0.139865919947624,0.000372039299691) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.036669246852398,0.071010224521160,0.101240158081055,0.120084799826145,-0.116290807723999,-0.073008961975574,0.104458108544350,0.019622296094894,0.156141474843025,-0.004000447224826,0.275142997503281,-0.110743992030621,0.048184137791395,0.013711814768612,-0.311823368072510,0.080162048339844) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.032198503613472,0.108961395919323,0.023137824609876,0.026482690125704,0.058726321905851,0.000887971953489,0.064376056194305,0.012964475899935,-0.002619780367240,-0.117954380810261,0.014505809172988,0.162073865532875,0.043062061071396,-0.075315721333027,-0.297071099281311,-0.010388455353677) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.010279955342412,-0.013440288603306,-0.025170344859362,-0.017764803022146,-0.141597077250481,-0.099965736269951,0.094245120882988,-0.091293983161449,-0.074530154466629,0.103773765265942,-0.024880196899176,-0.033179577440023,-0.109272904694080,0.061629951000214,-0.001357319066301,0.037020832300186) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.159247875213623,-0.010381033644080,-0.280654489994049,0.058712650090456,0.043996274471283,0.013330378569663,0.057774189859629,-0.167428597807884,0.048443067818880,0.163698643445969,0.342258095741272,-0.139048546552658,-0.110940821468830,-0.027929991483688,-0.087883375585079,-0.127976179122925) * MODEL8_texOff(vec2(0,0));
res += mat4(0.016480671241879,0.001624058815651,0.159615263342857,0.050706937909126,-0.115821339190006,-0.141008108854294,-0.046807661652565,0.223523542284966,-0.190665885806084,-0.028523897752166,-0.017310058698058,-0.104101039469242,0.123532511293888,-0.022340202704072,0.070837885141373,-0.237120673060417) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.030436433851719,0.043909106403589,0.015685420483351,0.031694445759058,-0.023307183757424,-0.022082144394517,-0.006417481694371,-0.015022361651063,-0.078881159424782,-0.075212560594082,-0.002919902093709,0.021192930638790,-0.005427992437035,-0.057260472327471,-0.028035730123520,-0.048697665333748) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.024350315332413,-0.061822310090065,0.056826025247574,0.010051671415567,-0.074336223304272,0.002446675440297,-0.027397733181715,0.035401448607445,0.134547770023346,0.066976845264435,-0.200672298669815,0.096753917634487,-0.025962527841330,-0.086086787283421,-0.026494082063437,0.107653088867664) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.033010780811310,-0.011588272638619,0.058457311242819,0.051291726529598,0.030286727473140,-0.106162376701832,-0.040622342377901,0.055253155529499,-0.123369581997395,-0.008153491653502,-0.005908259656280,0.065191477537155,-0.069285206496716,-0.097711540758610,0.015902468934655,0.091859698295593) * MODEL8_texOff(vec2(1,1));
res += mat4(0.262167811393738,0.019658558070660,-0.005787471309304,-0.094119697809219,-0.126576319336891,-0.143245518207550,-0.182947069406509,0.167974159121513,-0.106993429362774,-0.100664235651493,0.022196670994163,0.124486163258553,-0.204066231846809,0.063884086906910,0.207440495491028,-0.064823761582375) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.249331519007683,-0.013880777172744,0.136107876896858,0.073025986552238,-0.241077378392220,0.100201308727264,-0.264951914548874,0.131903693079948,-0.054856639355421,0.094330757856369,0.067754328250885,-0.022439800202847,-0.089046083390713,0.278671234846115,0.335302233695984,0.082619212567806) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.182777270674706,-0.068664483726025,0.021082285791636,0.028121866285801,-0.162319883704185,-0.195893123745918,-0.074041672050953,0.138003498315811,0.006686498411000,-0.118196099996567,0.116054423153400,0.017227496951818,-0.091294378042221,-0.023160750046372,0.137860655784607,0.159205615520477) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.130319878458977,0.095973685383797,0.073570027947426,0.114179335534573,-0.049021027982235,-0.129101946949959,0.031844180077314,0.105975821614265,0.003821570659056,-0.047018580138683,-0.005285110324621,-0.069823317229748,-0.113074548542500,0.081098057329655,0.016229510307312,-0.158957764506340) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.075052432715893,0.039492260664701,0.088753573596478,0.015653787180781,-0.140075609087944,-0.185528770089149,-0.023653894662857,-0.149824634194374,0.097330763936043,0.404112935066223,-0.060052022337914,-0.214732870459557,0.193125739693642,0.334940284490585,-0.213819965720177,-0.037040740251541) * MODEL9_texOff(vec2(0,0));
res += mat4(0.120954319834709,0.040003288537264,0.024677040055394,0.080220907926559,-0.181066811084747,-0.190529346466064,0.003798375837505,0.144020840525627,0.179887667298317,0.451520651578903,0.003691982710734,-0.100586891174316,0.013646321371198,0.056825142353773,-0.112222634255886,0.161154210567474) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.055084772408009,-0.039848871529102,-0.094914406538010,0.068824194371700,-0.102348551154137,-0.136200010776520,0.096521846950054,0.079920098185539,-0.013776941224933,-0.009891320951283,-0.009182942099869,-0.005220881663263,0.015400154516101,0.105510853230953,-0.083885207772255,-0.173520341515541) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.075136847794056,0.046343550086021,0.001320196781307,0.088221564888954,-0.213798284530640,-0.171840876340866,0.117777086794376,0.079359255731106,0.140668943524361,0.254894852638245,0.087425127625465,-0.183038949966431,0.086780227720737,0.103187091648579,-0.247283384203911,0.046058718115091) * MODEL9_texOff(vec2(1,0));
res += mat4(0.037134047597647,-0.026973310858011,-0.006228031124920,-0.016486629843712,-0.179454997181892,-0.129079088568687,0.110361851751804,0.089859768748283,0.174135774374008,0.347152590751648,0.162492111325264,0.047513972967863,-0.092526182532310,-0.045062351971865,-0.050363805145025,0.211609035730362) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.036982767283916,-0.175791144371033,-0.103405103087425,-0.045352656394243,0.036710552871227,-0.011057027615607,-0.079256504774094,-0.071049422025681,-0.409995704889297,-0.089576207101345,0.251828312873840,-0.311180144548416,-0.075045205652714,-0.138648405671120,-0.026459079235792,0.095016106963158) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.124334670603275,-0.166188165545464,0.418763935565948,0.111178740859032,-0.080923013389111,0.088663496077061,0.007713958155364,-0.021794831380248,0.222904771566391,0.047662694007158,0.349736213684082,0.284101992845535,-0.160943910479546,-0.059751395136118,-0.098784983158112,0.095203801989555) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.052790600806475,-0.162555634975433,0.134209305047989,0.211304768919945,-0.019963884726167,0.062322717159986,-0.011724343523383,-0.076342806220055,-0.028648057952523,-0.126166373491287,0.274908393621445,0.085831478238106,-0.060900110751390,0.011345898732543,0.174108907580376,-0.072671920061111) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.012449818663299,-0.148461267352104,-0.011121897026896,0.131965503096581,-0.068476825952530,-0.022260624915361,0.040347889065742,0.273957610130310,-0.101684108376503,-0.043606642633677,-0.034392263740301,-0.151974275708199,-0.064574256539345,-0.162008091807365,0.017016254365444,0.128563448786736) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.072218015789986,0.560336053371429,0.060276955366135,-0.377312809228897,-0.275206059217453,-0.383625656366348,-0.049993459135294,0.006852143444121,0.375562965869904,0.385777533054352,-0.672327637672424,-0.222263634204865,0.019976448267698,-0.217508658766747,0.145580977201462,0.145322605967522) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.097980797290802,0.116831094026566,0.005206921603531,0.124480396509171,0.018767850473523,0.085160478949547,-0.099134854972363,0.302405476570129,0.079634405672550,0.107611708343029,-0.297386765480042,0.254547297954559,0.168147981166840,0.227000415325165,-0.094929710030556,-0.148153066635132) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.013082609511912,-0.072428509593010,-0.032461185008287,0.089865610003471,0.044455196708441,0.022095942869782,0.024206541478634,-0.187531739473343,0.001844295999035,0.076431110501289,-0.021944155916572,0.046132218092680,-0.096717864274979,-0.174344539642334,0.018691046163440,-0.023333998396993) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.086223632097244,0.313953757286072,-0.249796956777573,0.026621198281646,-0.052920434623957,-0.085338793694973,-0.042369503527880,-0.188471913337708,-0.247988015413284,-0.088116876780987,0.129517674446106,-0.079170912504196,0.020578663796186,-0.152921736240387,0.032071303576231,-0.111134834587574) * MODEL10_texOff(vec2(1,0));
res += mat4(0.048620484769344,-0.016439326107502,-0.022259745746851,0.085096605122089,-0.047361243516207,0.061078608036041,-0.085679002106190,0.041184660047293,-0.091506235301495,-0.013651419430971,0.100075677037239,-0.015663145110011,-0.030373334884644,-0.256150871515274,0.055936194956303,0.112476654350758) * MODEL10_texOff(vec2(1,1));
res += mat4(0.009112324565649,-0.062727175652981,0.125691473484039,-0.029339423403144,0.120749630033970,0.126048028469086,0.021835453808308,0.119524225592613,-0.130399629473686,0.140663161873817,0.050653148442507,0.148251295089722,-0.108245760202408,-0.021254753693938,0.148858502507210,-0.147921070456505) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.151932880282402,0.043475884944201,-0.088572189211845,0.006250815000385,0.057912051677704,0.071963772177696,0.146574854850769,0.052611462771893,-0.073626503348351,-0.017395235598087,0.105470694601536,0.023690339177847,0.225876122713089,0.206839293241501,-0.508832752704620,0.168866306543350) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.053560160100460,0.035785514861345,-0.051427543163300,0.116563454270363,0.070677310228348,0.060832560062408,0.104037016630173,-0.108134746551514,0.006490217521787,0.042594250291586,0.009882971644402,-0.002013444667682,-0.067660063505173,0.133197396993637,-0.018825434148312,-0.240512356162071) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.129102289676666,0.002097802702338,-0.055948443710804,0.163349792361259,-0.023993421345949,0.040608562529087,-0.035518307238817,-0.147438913583755,-0.014897665008903,0.092771351337433,-0.014813902787864,-0.162538945674896,0.284769833087921,0.051173415035009,0.012180724181235,0.322836577892303) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.159523069858551,0.131558358669281,-0.479541182518005,-0.029177105054259,-0.044684406369925,0.039087381213903,-0.195884197950363,0.146390005946159,0.103254534304142,-0.114385493099689,0.167169541120529,-0.163981124758720,-0.262670218944550,-0.307426452636719,0.096907563507557,-0.125798672437668) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.225024223327637,-0.113309197127819,0.150730371475220,-0.014163111336529,-0.110595718026161,0.024121258407831,0.141941174864769,0.028837015852332,-0.009885340929031,0.092464894056320,-0.012748773209751,0.006597162224352,0.028298916295171,0.061994422227144,-0.011308639310300,-0.055667862296104) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.017911117523909,-0.006490966305137,0.024870082736015,-0.045674864202738,0.054840568453074,0.146994814276695,0.043777264654636,-0.145924478769302,-0.004342666361481,0.033562947064638,-0.062164179980755,0.013747807592154,0.001119880122133,0.121821120381355,0.033508922904730,-0.004381303209811) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.018637713044882,-0.056032307446003,0.019495597109199,-0.185509592294693,0.136004298925400,0.033897411078215,0.052482683211565,0.119129940867424,0.021783480420709,-0.042210843414068,-0.140997171401978,0.077861301600933,0.107754670083523,-0.006103065796196,0.129758790135384,0.069024406373501) * MODEL11_texOff(vec2(1,0));
res += mat4(0.148254394531250,0.104186534881592,0.005695573985577,0.102398954331875,0.069038175046444,-0.048344865441322,-0.045193865895271,0.082096494734287,0.125497013330460,0.046682909131050,0.017591077834368,0.056931376457214,0.044878277927637,0.082485258579254,0.000781101989560,-0.116408079862595) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.079169675707817,-0.069218806922436,-0.065763704478741,0.055507846176624,-0.026462083682418,0.030410816892982,0.054549396038055,0.100937128067017,-0.151138246059418,-0.090952083468437,-0.040921099483967,-0.104915440082550,0.065819151699543,-0.117529705166817,0.129171714186668,-0.008370841853321) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.168288290500641,-0.103952534496784,-0.073630921542645,0.085811927914619,-0.037314970046282,0.088611125946045,0.042365998029709,-0.018653381615877,0.045737110078335,0.031348492950201,0.256355494260788,-0.085888929665089,-0.161096081137657,-0.117511637508869,0.160093903541565,-0.166030213236809) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.047127064317465,-0.002824146300554,-0.136243700981140,-0.093995407223701,0.058650732040405,0.162234485149384,0.006645950954407,-0.003940700553358,0.024201342836022,0.128779187798500,0.003605571342632,0.012321297079325,-0.079176582396030,0.033150404691696,0.031885065138340,-0.053027689456940) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.001297848531976,-0.018992166966200,0.014067355543375,0.023036932572722,-0.057483140379190,-0.032840512692928,0.041758462786674,0.056459788233042,-0.268107891082764,-0.099569864571095,-0.228393524885178,-0.181183174252510,0.011341179721057,0.018024438992143,-0.048463676124811,0.136059999465942) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.081183113157749,0.103253230452538,0.117930002510548,-0.022062964737415,-0.134541586041451,-0.108415141701698,-0.148531556129456,0.116417258977890,0.331981927156448,0.241623684763908,-0.423075199127197,0.142003342509270,0.185034766793251,-0.079251185059547,0.018740121275187,-0.086338415741920) * MODEL12_texOff(vec2(0,0));
res += mat4(0.031885784119368,0.027927460148931,-0.033443655818701,0.043302837759256,-0.064856283366680,0.023871582001448,0.006012683734298,0.245372831821442,0.002420304808766,0.040492359548807,-0.186319813132286,-0.167181164026260,0.066523529589176,-0.062037657946348,0.166071891784668,-0.014564012177289) * MODEL12_texOff(vec2(0,1));
res += mat4(0.038660697638988,-0.028829293325543,0.091818660497665,-0.001764121698216,0.170264095067978,0.128772810101509,0.049588363617659,0.020198864862323,-0.258497267961502,-0.166653007268906,-0.013354532420635,0.116330929100513,-0.140563771128654,-0.042222611606121,0.044112861156464,0.123348280787468) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.060922686010599,-0.007892535999417,0.018701605498791,-0.117033556103706,0.054208151996136,0.099606812000275,0.091569438576698,-0.321383655071259,0.115319140255451,0.109007194638252,-0.047028850764036,0.034389391541481,-0.017466312274337,0.053217828273773,-0.090550795197487,0.190017059445381) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.000298033555737,-0.080596335232258,0.052740342915058,-0.128955930471420,0.037689056247473,0.125771641731262,-0.044284470379353,-0.130057409405708,-0.098941221833229,-0.060093961656094,-0.006828807294369,0.017810672521591,0.092883057892323,-0.024156128987670,0.007134702522308,0.144978627562523) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.491180330514908,-0.031951028853655,-0.196108847856522,0.749459981918335) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_4x_Photo] mapping 5_2

vec4 hook()
{
vec4 res = vec4(0.078618876636028,0.077514559030533,0.044218577444553,-0.298587322235107);
res += mat4(-0.080612517893314,-0.207818478345871,-0.048122450709343,0.030764199793339,0.026440128684044,-0.035344045609236,-0.102269724011421,0.032029584050179,0.090680502355099,0.018574075773358,0.241903334856033,-0.029392700642347,0.000432662549429,-0.034971669316292,-0.008173408918083,-0.053002502769232) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.058149956166744,-0.221653312444687,0.067793190479279,-0.101950168609619,0.036668241024017,-0.171508044004440,0.255908578634262,-0.081863656640053,-0.012727529741824,-0.030483206734061,0.080229111015797,-0.118022382259369,-0.136989355087280,-0.002751776948571,-0.091772720217705,-0.033764798194170) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.086501054465771,0.077023252844810,-0.091072931885719,0.006406937725842,-0.049003649502993,-0.095311678946018,0.005288272164762,0.022866889834404,-0.089969508349895,-0.016678430140018,0.003205672604963,0.005216843914241,-0.482048034667969,0.082581542432308,-0.314141362905502,0.064355105161667) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.002109298715368,-0.037635605782270,-0.029714882373810,0.090571083128452,0.032564129680395,0.131667107343674,0.065868958830833,-0.010084488429129,-0.028762027621269,-0.118489071726799,0.228606507182121,0.171669274568558,-0.046939343214035,-0.182213038206100,0.101599097251892,-0.037386909127235) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.107840657234192,0.126382634043694,-0.015723502263427,-0.112635172903538,0.136161163449287,0.008384458720684,-0.042722184211016,0.176448807120323,0.005823052022606,-0.055716127157211,-0.346133172512054,0.214578077197075,-0.307134330272675,-0.228812411427498,0.103919290006161,-0.000968687236309) * MODEL7_texOff(vec2(0,0));
res += mat4(0.013997501693666,-0.025550471618772,-0.045150663703680,-0.113473653793335,0.074315384030342,0.164791271090508,-0.024700429290533,-0.025706339627504,0.036675136536360,0.029046082869172,-0.146151378750801,0.028598619624972,-0.353527516126633,-0.304367333650589,0.163139462471008,0.104692280292511) * MODEL7_texOff(vec2(0,1));
res += mat4(0.008544863201678,0.001877799048088,-0.066649161279202,0.035792425274849,-0.045644991099834,0.032642491161823,0.141093254089355,-0.349484115839005,-0.053951509296894,-0.075456649065018,-0.031919829547405,-0.023477161303163,-0.031019799411297,0.045854229480028,0.079697832465172,0.000406288658269) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.077105678617954,-0.054333407431841,0.089666031301022,0.018824720755219,-0.082304507493973,-0.062382075935602,0.298901051282883,-0.308344513177872,-0.178918823599815,-0.063037827610970,0.141417011618614,-0.187068775296211,-0.111594632267952,0.053775373846292,-0.008792769163847,0.052317347377539) * MODEL7_texOff(vec2(1,0));
res += mat4(0.033469352871180,0.002495936816558,0.095443576574326,-0.119489990174770,-0.027472879737616,0.072004288434982,-0.155621975660324,-0.067295521497726,-0.109057605266571,0.229286029934883,-0.103558659553528,0.135681182146072,-0.088422164320946,0.110350616276264,-0.035234037786722,0.101659037172794) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.065460599958897,-0.043053202331066,-0.125008568167686,-0.107212804257870,0.104092098772526,0.046212758868933,0.167879238724709,-0.099423408508301,0.120704814791679,0.007666342891753,0.111133165657520,0.014318575151265,0.105600930750370,0.159789934754372,0.099079959094524,-0.033782780170441) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.161244481801987,-0.182662308216095,0.015409657731652,-0.024947158992290,0.083873949944973,-0.142128214240074,0.306883931159973,-0.048452500253916,0.228494331240654,0.171354159712791,0.066970489919186,0.182675600051880,-0.101306460797787,0.193784683942795,-0.124545343220234,-0.088456548750401) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.078757919371128,0.173506692051888,0.080561712384224,0.015748234465718,-0.089342094957829,-0.039653524756432,-0.046587560325861,0.007364499848336,0.103223778307438,0.043012529611588,-0.109664335846901,-0.009431228041649,0.185180887579918,-0.030290728434920,-0.069294273853302,0.034688971936703) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.124297641217709,-0.017888749018312,0.084477834403515,-0.055529411882162,0.153340414166451,0.118738636374474,0.168485820293427,0.161028444766998,0.013550285249949,0.050571486353874,0.025944229215384,0.099236361682415,0.030503580346704,0.030104208737612,-0.062609672546387,-0.059163998812437) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.008098465390503,-0.462646275758743,-0.058939035981894,0.034849163144827,-0.161721587181091,-0.076104044914246,0.257133662700653,0.219200536608696,0.216934993863106,-0.004183408804238,-0.133332163095474,-0.095485530793667,-0.090099781751633,-0.187983870506287,-0.097907267510891,-0.085968844592571) * MODEL8_texOff(vec2(0,0));
res += mat4(0.064042434096336,0.037765264511108,0.001390047837049,0.021859593689442,0.005579756572843,-0.051624160259962,-0.102243162691593,-0.140961438417435,0.040693286806345,0.023031491786242,-0.017000062391162,-0.055137675255537,-0.294127196073532,-0.314837038516998,0.042905952781439,0.125663667917252) * MODEL8_texOff(vec2(0,1));
res += mat4(0.145403057336807,-0.046486835926771,0.007568934466690,-0.038479659706354,0.000370037130779,0.104994550347328,0.164294794201851,0.083156771957874,-0.139922991394997,-0.097227506339550,-0.063224129378796,-0.017870986834168,0.100887216627598,0.261627286672592,0.204363211989403,-0.240370959043503) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.024492196738720,-0.352803558111191,0.038419205695391,-0.139266222715378,0.068509168922901,-0.071864277124405,0.009987944737077,0.079468078911304,-0.141851231455803,-0.029587551951408,-0.117951713502407,0.117315135896206,0.174075722694397,0.059878766536713,-0.000731716456357,-0.294325739145279) * MODEL8_texOff(vec2(1,0));
res += mat4(0.069320537149906,0.148700058460236,0.068780638277531,-0.113538347184658,-0.153479397296906,-0.197183564305305,0.079862050712109,0.050169449299574,0.011949686333537,-0.069264099001884,-0.110908843576908,0.056015323847532,-0.111517354846001,0.244162485003471,-0.059518214315176,-0.074974223971367) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.083305545151234,0.133486464619637,0.157076299190521,0.032063987106085,-0.012669926509261,0.096122324466705,0.050550166517496,-0.141068905591965,-0.104827664792538,-0.038416165858507,-0.040017843246460,0.014197494834661,-0.040452025830746,-0.113825097680092,0.072716116905212,0.028965584933758) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.037091862410307,-0.217887789011002,0.464468836784363,-0.111709192395210,-0.122532315552235,0.107858516275883,-0.042704798281193,0.063099309802055,-0.195172652602196,-0.030509784817696,0.240826606750488,0.091804891824722,-0.164121478796005,-0.107290990650654,-0.004085622727871,0.092764131724834) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.252867430448532,-0.239387929439545,0.431875318288803,0.090703167021275,0.042753726243973,0.124246828258038,0.154075652360916,-0.092890799045563,-0.044191852211952,-0.005559287033975,0.153987437486649,0.181090891361237,-0.127555102109909,0.199901923537254,-0.074303165078163,-0.067873716354370) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.356427311897278,0.035749189555645,0.047084547579288,-0.050455708056688,-0.055819556117058,-0.016326582059264,-0.046100776642561,-0.097387477755547,-0.028937650844455,0.000951330759563,-0.162701502442360,0.072172455489635,0.127639934420586,-0.131275415420532,-0.146065995097160,0.056811653077602) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.116118431091309,0.240846499800682,0.111679889261723,-0.050465028733015,-0.085139028728008,-0.097108602523804,0.011256888508797,-0.066687576472759,-0.106169819831848,-0.011916003189981,-0.124094016849995,0.126145273447037,-0.139326915144920,-0.034423179924488,-0.105248190462589,0.243226915597916) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.122548483312130,0.048158671706915,0.329958051443100,-0.010347839444876,-0.001868332852609,-0.044972363859415,0.060395892709494,-0.071112565696239,0.072838328778744,-0.164232924580574,0.170663088560104,0.260754227638245,0.154652312397957,0.134800150990486,0.092172734439373,-0.126964464783669) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.086162954568863,0.038566105067730,-0.062679976224899,0.094250872731209,0.096873089671135,0.080417454242706,0.008697357960045,-0.041337311267853,-0.102520033717155,-0.151409655809402,-0.078744038939476,-0.033392451703548,0.156671017408371,-0.050442993640900,-0.037004664540291,0.026262901723385) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.116889908909798,0.065109893679619,-0.047069106251001,0.086105450987816,0.009900636970997,0.156913578510284,0.123499333858490,-0.148551285266876,0.083837680518627,-0.178831309080124,-0.131922304630280,-0.053353965282440,-0.218524411320686,0.158462241292000,0.107317298650742,-0.286913812160492) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.043137419968843,0.119878560304642,0.120988130569458,0.046478163450956,0.119375497102737,0.101830385625362,0.077304780483246,0.008485595695674,0.054804831743240,-0.157461419701576,-0.155262753367424,-0.128029957413673,-0.010273977182806,0.284840494394302,0.098681949079037,0.002518466673791) * MODEL9_texOff(vec2(1,1));
res += mat4(0.008775124326348,-0.026133226230741,0.071040675044060,0.012724106200039,-0.149243667721748,0.012653659097850,0.036845427006483,-0.039162840694189,0.130585744976997,-0.173475995659828,0.180643171072006,-0.186688527464867,0.041083980351686,0.074421495199203,0.045375768095255,-0.045892324298620) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.070417203009129,-0.013263681903481,0.173421010375023,-0.070177860558033,-0.168975472450256,-0.189332917332649,-0.083541043102741,-0.011057770811021,0.136645644903183,-0.008816990070045,0.004427364561707,0.090939983725548,-0.065035745501518,-0.001476327539422,-0.156313389539719,-0.022865699604154) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.104980446398258,-0.155731022357941,0.260991603136063,0.036699496209621,-0.050440538674593,0.071752607822418,-0.109879963099957,0.064447231590748,0.002701228717342,0.005367927253246,0.003968963399529,-0.032695442438126,0.024816511198878,-0.122198417782784,0.227792292833328,-0.083037585020065) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.058892723172903,-0.061888042837381,-0.030706491321325,-0.008952969685197,-0.074009612202644,-0.094433203339577,-0.583480775356293,0.050732854753733,0.075896240770817,0.146567374467850,0.108801946043968,0.037301391363144,0.141919985413551,-0.016109976917505,-0.065906479954720,-0.187557652592659) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.200402528047562,-0.078387580811977,-0.218993499875069,0.469027996063232,0.004528934601694,-0.302018076181412,-0.086191408336163,-0.008214361034334,0.339699029922485,-0.024478238075972,0.086440198123455,-0.020788505673409,0.108348794281483,-0.117206119000912,-0.137276664376259,-0.095716059207916) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.091180518269539,-0.089194387197495,0.170768395066261,0.146139487624168,0.002287922427058,0.158282279968262,-0.077563948929310,-0.110982894897461,-0.019669428467751,-0.091943390667439,-0.187514007091522,0.081810332834721,0.127086475491524,-0.291595190763474,-0.175331443548203,-0.025101235136390) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.001308818464167,-0.108535446226597,-0.026545880362391,-0.082737646996975,0.044414252042770,-0.036668270826340,-0.116281926631927,0.050169423222542,0.078554190695286,-0.285459250211716,-0.072772376239300,-0.072521649301052,-0.000712092965841,0.165496990084648,0.180455774068832,-0.200709700584412) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.113730624318123,-0.140337437391281,-0.183855071663857,-0.272410899400711,0.102802112698555,0.056356392800808,0.018249349668622,0.117942996323109,0.245092049241066,-0.211121842265129,0.049297872930765,-0.636784136295319,-0.008601884357631,0.040896259248257,-0.145929634571075,0.087743818759918) * MODEL10_texOff(vec2(1,0));
res += mat4(0.228081181645393,0.033139910548925,0.199619278311729,-0.220939740538597,-0.167700201272964,0.390469878911972,0.024019815027714,0.005462243687361,-0.214607298374176,-0.026676056906581,-0.009376624599099,-0.194361105561256,0.038935758173466,-0.050226379185915,0.004943304229528,-0.106912821531296) * MODEL10_texOff(vec2(1,1));
res += mat4(0.020351653918624,0.059562765061855,0.039827302098274,0.062413308769464,0.000701970944647,0.087905690073967,-0.153326794505119,0.124680019915104,-0.113984055817127,0.018682645633817,-0.132491663098335,0.060705233365297,-0.081528320908546,0.007035742979497,-0.123902454972267,-0.072016306221485) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.078700937330723,0.122308701276779,0.060385365039110,0.014987966045737,0.107159338891506,0.071377046406269,0.230891779065132,0.191758304834366,0.026580549776554,-0.156182006001472,0.181807979941368,0.095566503703594,-0.036863759160042,-0.055901534855366,-0.058294493705034,-0.063209556043148) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.245676681399345,0.000154514505994,-0.094428859651089,0.069137714803219,0.044308979064226,-0.154329836368561,0.338814884424210,0.053289409726858,-0.045480079948902,-0.093880206346512,-0.079037055373192,0.045367557555437,0.115250401198864,0.116228491067886,0.034513425081968,-0.053425125777721) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.147180393338203,0.218646347522736,-0.164046019315720,0.143108949065208,-0.225796848535538,0.025754893198609,0.059523273259401,0.065029039978981,-0.038626506924629,0.104618869721889,-0.040764942765236,0.070277184247971,-0.020772125571966,-0.098148904740810,-0.226691648364067,0.105352476239204) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.003489124123007,0.171724677085876,-0.029866656288505,-0.123627610504627,0.180117085576057,-0.010024080052972,-0.090839602053165,-0.023950811475515,-0.240154385566711,0.119291447103024,0.108937554061413,-0.045464567840099,-0.036050558090210,-0.159853965044022,0.227175921201706,-0.366314679384232) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.039014872163534,0.022096991539001,-0.128364250063896,-0.058616701513529,0.337195485830307,-0.021760785952210,-0.109368778765202,0.150105938315392,-0.192551717162132,-0.024719774723053,-0.087564215064049,0.058696754276752,0.081463500857353,0.102727286517620,0.104769520461559,-0.061504505574703) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.101614050567150,-0.062816321849823,0.087645538151264,-0.129434868693352,0.161638766527176,0.026494167745113,-0.029851667582989,-0.016379455104470,-0.076984547078609,0.089515335857868,0.056584317237139,-0.185527428984642,0.045053988695145,-0.024556092917919,-0.032875850796700,0.093961358070374) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.354182034730911,0.200377836823463,0.225858479738235,-0.327134847640991,-0.073158510029316,-0.099731966853142,0.049503378570080,-0.016054825857282,-0.034054700285196,-0.238794118165970,-0.108652628958225,-0.048925850540400,-0.060628701001406,-0.080283388495445,-0.076836742460728,0.116230040788651) * MODEL11_texOff(vec2(1,0));
res += mat4(0.031047124415636,-0.086574137210846,0.034364312887192,-0.014092735014856,0.112432695925236,0.140222415328026,0.077246338129044,0.127216279506683,0.016602862626314,-0.218991354107857,-0.069773867726326,-0.177745103836060,0.214456573128700,0.026826616376638,-0.004541901871562,0.087671414017677) * MODEL11_texOff(vec2(1,1));
res += mat4(0.051457613706589,-0.077291764318943,-0.004788590595126,-0.223212525248528,-0.071793884038925,-0.113682538270950,-0.042088039219379,-0.011688572354615,0.011969112791121,-0.034932777285576,0.155376300215721,-0.115169264376163,0.126887932419777,0.097667567431927,0.045511707663536,-0.069217063486576) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.053532641381025,-0.130485251545906,0.034172508865595,-0.032143682241440,-0.054980795830488,-0.062470342963934,-0.090919204056263,0.028528211638331,-0.035473261028528,-0.175332129001617,-0.055353298783302,0.062346681952477,0.025552172213793,0.015223785303533,0.016154916957021,-0.058049488812685) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.105704143643379,0.243524745106697,0.072329245507717,-0.172687426209450,-0.073576800525188,0.003136875573546,-0.060057278722525,0.007131557911634,-0.010552003979683,0.232571423053741,-0.100070901215076,-0.025811247527599,0.094023115932941,0.049271825700998,-0.138176009058952,-0.044396944344044) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.130498886108398,-0.117947772145271,0.009624704718590,-0.089693911373615,-0.022712461650372,-0.020732142031193,0.002231252612546,0.132568791508675,-0.114888027310371,-0.174232453107834,0.287128329277039,-0.087867975234985,-0.019688162952662,0.127214759588242,0.083265282213688,0.050173323601484) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.080934189260006,-0.190814390778542,0.000054125728639,0.024841422215104,0.066119417548180,-0.162565141916275,-0.096660144627094,-0.011361919343472,-0.136445268988609,-0.215544342994690,-0.186121001839638,0.161394596099854,-0.057350754737854,-0.021189874038100,0.023077730089426,0.013915588147938) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.111012868583202,0.232810094952583,0.055454958230257,-0.057332318276167,-0.034591462463140,-0.184203743934631,0.049909081310034,-0.010995308868587,-0.015467424876988,0.064842991530895,0.008084462955594,-0.118548542261124,0.046969879418612,0.041036635637283,0.004678050056100,0.140609696507454) * MODEL12_texOff(vec2(0,1));
res += mat4(0.031937181949615,-0.099160991609097,0.213661000132561,-0.056777499616146,0.077678881585598,0.059448186308146,-0.054563488811255,-0.055589985102415,-0.064571820199490,-0.062598451972008,0.001698075328022,-0.035306986421347,-0.022544890642166,0.074184007942677,0.018885405734181,0.020241314545274) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.058942813426256,-0.007765664253384,-0.031804896891117,0.068743079900742,0.072128087282181,-0.078947827219963,-0.015518364496529,-0.027179008349776,-0.381472975015640,-0.011805379763246,0.043396916240454,-0.017794476822019,-0.066447414457798,-0.139932990074158,0.048467107117176,-0.109158717095852) * MODEL12_texOff(vec2(1,0));
res += mat4(0.128892242908478,0.294037759304047,-0.046081855893135,0.056213315576315,-0.119176924228668,-0.016339169815183,-0.046650543808937,0.166870087385178,-0.066724374890327,0.261844724416733,0.052957843989134,-0.020113404840231,0.298210322856903,-0.020731162279844,-0.061334561556578,0.100186973810196) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.147385209798813,-0.048153072595596,0.107581295073032,0.031474340707064) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_4x_Photo] mapping 5_3

vec4 hook()
{
vec4 res = vec4(-0.024659220129251,-0.014689539559186,-0.137699231505394,0.029317546635866);
res += mat4(-0.046028189361095,0.284934997558594,-0.132547095417976,-0.074871808290482,-0.111535221338272,0.029328428208828,0.100699208676815,-0.051771096885204,0.081622228026390,-0.015725381672382,0.237420111894608,-0.056899301707745,0.039727177470922,-0.121373176574707,-0.067072130739689,-0.001887839520350) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.015104134567082,-0.023983331397176,-0.083010718226433,0.049354095011950,-0.071185544133186,-0.040674805641174,-0.000185969314771,0.030671691522002,-0.101303830742836,0.144859611988068,0.299670845270157,-0.027119161561131,0.079778052866459,-0.118568465113640,-0.041045371443033,0.054171711206436) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.077897116541862,0.115955896675587,-0.131330534815788,0.013242355547845,-0.011531607247889,-0.096788369119167,0.032849993556738,0.048310682177544,0.036987725645304,-0.021245757117867,0.105195462703705,0.049046043306589,0.036961190402508,-0.380433768033981,-0.086336895823479,0.011670749634504) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.159319266676903,0.067028470337391,0.126543655991554,0.183876901865005,-0.119927048683167,-0.162417575716972,-0.234235286712646,-0.049852378666401,0.158690974116325,-0.077309265732765,0.011296945624053,-0.142479583621025,-0.016876209527254,-0.041605614125729,-0.013185115531087,0.059907604008913) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.058719340711832,-0.133138269186020,-0.075286775827408,-0.124329052865505,-0.273708641529083,-0.148996666073799,-0.259906560182571,0.114793479442596,-0.417822510004044,-0.123553879559040,-0.050909411162138,-0.170238152146339,0.057059291750193,-0.004782337695360,-0.089286364614964,-0.073810644447803) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.028351144865155,-0.101048752665520,0.072786770761013,0.000057512093917,0.084517270326614,-0.247808799147606,-0.013553498312831,0.268177598714828,0.219385579228401,0.100897267460823,0.149061396718025,0.192391291260719,-0.097365885972977,-0.240173727273941,-0.053753703832626,-0.013220333494246) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.081403307616711,-0.067415654659271,0.186407878994942,-0.023706929758191,0.017060672864318,-0.034431211650372,-0.107356011867523,0.029178746044636,-0.064272060990334,0.043910302221775,-0.087810665369034,0.007559044752270,-0.009896320290864,0.029280649498105,0.013311065733433,-0.023494310677052) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.080336347222328,-0.213626950979233,0.106746271252632,-0.094593010842800,-0.112329438328743,-0.061455097049475,-0.182561263442039,-0.044737294316292,0.212125644087791,-0.035043697804213,-0.022656239569187,-0.013701209798455,-0.001138204592280,0.027272516861558,0.041503615677357,-0.041253793984652) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.053622495383024,-0.071941897273064,0.029680440202355,0.001131759956479,0.020005274564028,-0.039220448583364,0.206321299076080,0.129962757229805,-0.082889273762703,0.046601049602032,-0.109875820577145,-0.217269495129585,-0.010729271918535,0.014648128300905,-0.015771280974150,0.019245045259595) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.081613309681416,-0.077070385217667,-0.040553659200668,-0.007025582250208,0.035515401512384,0.066082224249840,0.238919511437416,0.030061885714531,0.129242062568665,0.112449809908867,-0.007378087379038,-0.039797633886337,0.135575354099274,0.098992548882961,-0.071139127016068,-0.006281859241426) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.030250303447247,0.181810677051544,0.019061375409365,-0.039505578577518,0.091610141098499,-0.006444075144827,0.221604600548744,0.069179132580757,-0.164654210209846,0.219479128718376,0.001817755866796,-0.009851308539510,0.104714624583721,0.044727135449648,-0.089248292148113,0.051971506327391) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.023959070444107,0.334295392036438,0.116594307124615,0.009117689915001,0.006621702108532,0.360962599515915,0.090119689702988,0.145743146538734,-0.025814512744546,0.016085585579276,0.187096014618874,0.093759424984455,-0.032325722277164,0.131532445549965,-0.165850564837456,0.015231023542583) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.122208803892136,-0.070652440190315,-0.099276497960091,0.147104576230049,0.094172790646553,-0.055156033486128,0.039159417152405,0.013011784292758,0.018638681620359,-0.006516221445054,-0.254284501075745,0.088240742683411,0.066815607249737,0.051779251545668,0.093428105115891,0.028702441602945) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.075285956263542,-0.177006483078003,0.157630443572998,-0.346701681613922,0.195470616221428,-0.056213758885860,0.071091890335083,0.127871364355087,-0.356611192226410,0.201936036348343,-0.052237648516893,0.149382576346397,0.194952204823494,-0.318136751651764,-0.065644919872284,-0.005395866930485) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.025990445166826,0.144694596529007,0.039682578295469,0.098425231873989,-0.098439782857895,-0.055053252726793,-0.104445174336433,-0.118986971676350,0.080704875290394,-0.002150713698938,0.098801732063293,0.229612588882446,-0.020434562116861,-0.055016960948706,0.163873896002769,-0.019496165215969) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.035748548805714,0.049347937107086,-0.040005743503571,0.051087073981762,0.005030827596784,-0.091334283351898,0.092023581266403,0.054763920605183,0.067472733557224,0.036148097366095,0.124933138489723,-0.039007239043713,-0.049477167427540,-0.053798243403435,-0.109726116061211,0.040370270609856) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.041911378502846,-0.083445779979229,0.026747578755021,-0.078723944723606,0.065401747822762,0.039734061807394,0.036121346056461,0.066795885562897,-0.159783065319061,-0.131608828902245,0.054408017545938,-0.240598648786545,0.027702992781997,-0.248495832085609,-0.103038683533669,0.066968165338039) * MODEL8_texOff(vec2(1,0));
res += mat4(0.059258442372084,0.110086284577847,0.015317569486797,0.248785451054573,-0.080182872712612,-0.043392643332481,0.105883620679379,0.060429528355598,-0.036481324583292,-0.017486169934273,0.128123372793198,0.110193662345409,0.106492236256599,-0.083836585283279,-0.010394420474768,0.049582459032536) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.071018725633621,0.002106283092871,0.079566560685635,0.051558587700129,-0.169787973165512,0.017173564061522,0.227529063820839,0.079772599041462,0.003384969662875,-0.095393709838390,-0.028554994612932,-0.051135595887899,0.257895946502686,0.059895094484091,0.071198910474777,0.017285777255893) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.018682727590203,0.002935958793387,0.224808856844902,0.071962267160416,-0.057203080505133,-0.146049648523331,0.181234553456306,0.073145948350430,0.042648088186979,0.147391393780708,0.080817364156246,0.001392434118316,-0.099365554749966,0.255912959575653,0.069710373878479,0.042792424559593) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.051648400723934,-0.065140224993229,0.072181567549706,-0.067148812115192,0.088418833911419,-0.073797255754471,0.214363738894463,0.127369537949562,0.010414103977382,0.119125247001648,-0.055019579827785,0.048893608152866,-0.105192907154560,0.175099000334740,0.162495300173759,0.203393355011940) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.050054669380188,0.050494998693466,-0.134557858109474,0.266399860382080,-0.149920880794525,-0.068316437304020,0.130171895027161,0.012824097648263,0.163094267249107,0.124375663697720,0.035891022533178,0.032278679311275,0.273495316505432,-0.056319322437048,-0.131699144840240,-0.153505101799965) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.065566301345825,0.089684605598450,-0.081926479935646,0.087062381207943,-0.067198321223259,-0.010158574208617,0.256685495376587,0.167907506227493,0.053400687873363,0.067834168672562,0.118349045515060,-0.065412238240242,-0.277298897504807,-0.080093421041965,-0.306645989418030,-0.240562587976456) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.052241977304220,-0.025957969948649,0.100458651781082,-0.114615619182587,0.098811097443104,-0.071102432906628,0.324447810649872,0.030721941962838,-0.030811421573162,0.088441163301468,0.058728758245707,-0.115341961383820,-0.098440855741501,-0.016391159966588,-0.085770323872566,0.363044500350952) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.017397742718458,0.001086757984012,0.100956089794636,0.011652651242912,-0.111625179648399,-0.031464904546738,-0.062668025493622,0.117306210100651,-0.035236220806837,-0.115433797240257,0.153908371925354,0.029243238270283,0.125365570187569,-0.175822317600250,-0.154940098524094,-0.109687738120556) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.025992648676038,0.006351085845381,0.184931710362434,-0.106615066528320,-0.032640799880028,-0.042488120496273,-0.001769513590261,0.094905883073807,0.067701727151871,-0.041953179985285,0.109770745038986,0.070716403424740,-0.108800560235977,-0.188834264874458,-0.196469083428383,-0.032942850142717) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.020832866430283,0.112548910081387,-0.008127448149025,-0.012436355464160,0.116994321346283,-0.048330184072256,0.116603784263134,0.157145485281944,0.013180050067604,-0.069244883954525,0.011069061234593,0.064907722175121,-0.129580557346344,-0.018243934959173,-0.065723568201065,0.152323558926582) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.024095818400383,0.042887885123491,0.121652200818062,-0.018469871953130,0.069972179830074,0.198487058281898,-0.011814132332802,-0.018104385584593,0.150224208831787,0.031693413853645,0.219055861234665,0.133867010474205,-0.011512674391270,0.088003151118755,0.085897408425808,0.040494911372662) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.073487490415573,0.533087730407715,0.232464641332626,-0.050199061632156,-0.021607879549265,-0.111712530255318,-0.020869435742497,0.073758609592915,-0.191746160387993,0.101239599287510,-0.018664756789804,-0.165381371974945,0.052426982671022,-0.027470285072923,-0.147837594151497,0.057881165295839) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.026252193376422,0.136231482028961,0.124782480299473,0.026074467226863,-0.039748974144459,0.077374048531055,0.003926593344659,-0.034364204853773,-0.005317559465766,0.107038505375385,-0.058621354401112,0.152270600199699,0.022124802693725,0.053264170885086,0.036663137376308,0.067041859030724) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.400273025035858,-0.244001001119614,-0.038832783699036,-0.026478510349989,-0.622946858406067,0.002363699954003,-0.166623041033745,-0.151009872555733,0.507372021675110,0.043461985886097,-0.019952232018113,-0.184300050139427,-0.367081880569458,0.049228359013796,0.113280653953552,0.046567700803280) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.188461616635323,0.018951915204525,0.174767866730690,0.054192531853914,0.093533232808113,-0.102136589586735,0.100889176130295,0.245407253503799,-0.185452103614807,-0.104370735585690,-0.259597420692444,-0.207307174801826,0.182187631726265,-0.167789921164513,-0.310433447360992,0.007100486196578) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.049036536365747,-0.050331074744463,-0.006561236921698,-0.002641997765750,-0.014571578241885,-0.008136118762195,-0.239760801196098,-0.134444102644920,-0.141636803746223,-0.126487746834755,-0.077463537454605,-0.030330767855048,0.202923834323883,-0.020020442083478,0.119015946984291,0.048895049840212) * MODEL10_texOff(vec2(0,1));
res += mat4(0.322795987129211,-0.132417649030685,-0.049889467656612,0.032389897853136,-0.377084374427795,0.119985677301884,-0.167629167437553,-0.176229625940323,-0.121797204017639,0.114374451339245,-0.107562571763992,-0.088988743722439,0.063821762800217,-0.005228063557297,-0.019977228716016,0.004949482623488) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.169989868998528,-0.103779554367065,0.007759664207697,0.077186480164528,0.003361294046044,-0.029216423630714,0.188976734876633,0.128168582916260,0.012361058034003,0.042579662054777,-0.091798268258572,0.128991335630417,-0.007902063429356,-0.073827825486660,-0.123338840901852,0.004874924663454) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.014270969666541,-0.156680002808571,0.040835801512003,-0.057982597500086,-0.026603627949953,-0.045289792120457,-0.108182981610298,0.171063721179962,-0.001532125403173,-0.029996782541275,-0.097516432404518,0.052932493388653,0.018117668107152,-0.020323423668742,0.085390254855156,-0.097241215407848) * MODEL10_texOff(vec2(1,1));
res += mat4(0.136328563094139,0.205340132117271,-0.066181041300297,0.001525559113361,-0.049981188029051,0.126722797751427,0.002742966869846,-0.051482465118170,0.002270235214382,0.018448825925589,-0.037307567894459,-0.043095178902149,0.176706686615944,-0.024600369855762,0.006467816885561,-0.050456766039133) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.011219729669392,-0.121494159102440,-0.117821253836155,0.104187421500683,-0.059556260704994,-0.041211884468794,0.001776950666681,-0.041930731385946,0.000088039385446,-0.101959988474846,-0.116319708526134,0.096335925161839,-0.152456358075142,0.014059293083847,-0.212444588541985,-0.151427507400513) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.024789290502667,0.084837265312672,-0.059684671461582,-0.050102688372135,0.086386770009995,-0.049206044524908,0.057469271123409,0.012353588826954,-0.042177993804216,0.143700316548347,-0.227158129215240,-0.152726411819458,0.128649920225143,-0.149543672800064,0.050830457359552,0.082080416381359) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.164314374327660,-0.028391495347023,-0.122440420091152,0.107628665864468,0.042685225605965,0.051034715026617,0.153588443994522,0.057832479476929,0.180044084787369,0.077258832752705,0.351801574230194,0.181155800819397,-0.335146188735962,0.077259883284569,0.196575984358788,-0.037679940462112) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.206502914428711,-0.146412402391434,0.095156408846378,0.117970459163189,-0.163446739315987,-0.098222292959690,0.049284867942333,-0.102511905133724,0.147799924015999,-0.067112810909748,0.332043200731277,-0.021460697054863,0.205938309431076,0.084170490503311,0.293676346540451,0.070129804313183) * MODEL11_texOff(vec2(0,0));
res += mat4(0.086800053715706,0.102757915854454,0.090986900031567,0.169647589325905,0.012263173237443,0.023800091817975,-0.032274410128593,-0.009320097044110,-0.115716911852360,-0.048925992101431,-0.397444963455200,-0.368348896503448,0.073708839714527,-0.023932183161378,0.040994789451361,-0.189265623688698) * MODEL11_texOff(vec2(0,1));
res += mat4(0.000085474130174,-0.048093102872372,-0.015756174921989,0.113228544592857,0.070552259683609,0.100251041352749,0.004007609561086,-0.012972706928849,-0.031784586608410,-0.001559130381793,-0.010655539110303,-0.082140021026134,-0.053605001419783,0.034528840333223,0.054354984313250,0.001258251839317) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.201317489147186,-0.092541195452213,-0.096049621701241,0.108513399958611,0.067511230707169,-0.029163276776671,0.048605661839247,0.117686219513416,-0.022015847265720,-0.062721960246563,-0.046879753470421,-0.128165900707245,0.023877069354057,0.189227551221848,0.115092143416405,-0.178897082805634) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.035028740763664,0.022292006760836,-0.116150617599487,-0.198497816920280,-0.033466916531324,0.126329258084297,0.010420143604279,0.033979669213295,-0.062652975320816,-0.045569181442261,-0.094244554638863,-0.168723717331886,0.010667345486581,0.084682568907738,0.028816735371947,-0.124610543251038) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.056780442595482,0.207550957798958,-0.009742275811732,-0.056751366704702,-0.001343326992355,-0.144332364201546,0.027251755818725,0.016559205949306,0.201653629541397,-0.175167754292488,-0.038476556539536,-0.071134872734547,0.110478520393372,0.276118010282516,0.151492506265640,-0.044484023004770) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.102003693580627,-0.041033167392015,0.143964454531670,0.079085893929005,0.017372533679008,-0.006747778039426,0.028578588739038,-0.092848554253578,-0.071040488779545,0.125804215669632,0.027083294466138,-0.137480378150940,0.018941733986139,0.122849933803082,-0.003325815312564,-0.014850136823952) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.047181252390146,0.087945990264416,-0.070177748799324,-0.013035275973380,-0.017190409824252,0.021170075982809,0.014673291705549,0.019421987235546,-0.043085049837828,0.173036918044090,-0.103218883275986,-0.123529992997646,-0.025090243667364,0.061690092086792,-0.143635228276253,-0.098076507449150) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.063339099287987,0.053683679550886,-0.010253887623549,0.081244267523289,0.035869501531124,-0.005094147752970,0.180843874812126,-0.096414104104042,0.426019996404648,-0.208744361996651,-0.040218640118837,-0.110477134585381,-0.019891416653991,0.068625241518021,0.135491073131561,0.068088836967945) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.061519008129835,-0.123676404356956,-0.028623681515455,-0.132888749241829,-0.073780454695225,0.122407682240009,0.126393616199493,-0.219552531838417,-0.182917684316635,-0.123668409883976,-0.331842184066772,-0.388434976339340,-0.011581196449697,-0.051921788603067,-0.183661907911301,-0.007364192046225) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.023818498477340,-0.071805238723755,-0.114960268139839,0.154909297823906,-0.076016619801521,-0.052328545600176,0.078354224562645,-0.060725543648005,-0.072687625885010,-0.185004323720932,0.017439313232899,0.139135539531708,0.004525550175458,0.018488595262170,-0.034566845744848,-0.011154440231621) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.019914017990232,0.036803103983402,0.116892859339714,0.028326397761703,-0.037814226001501,0.115279473364353,0.078456945717335,-0.091858938336372,0.156882703304291,0.060445878654718,-0.063088767230511,0.168903484940529,0.123451754450798,-0.037872564047575,0.149218112230301,0.073546864092350) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.131802931427956,0.032975360751152,0.007357746362686,-0.060787182301283,0.040579769760370,0.224995031952858,0.071398444473743,-0.032758783549070,-0.193231940269470,0.000267787370831,-0.225890010595322,0.038646660745144,-0.008053026162088,-0.081608965992928,-0.288526713848114,-0.143380910158157) * MODEL12_texOff(vec2(1,0));
res += mat4(0.049551486968994,0.058946706354618,0.001013575936668,0.015048820525408,0.005121798254550,-0.001739880768582,0.139808595180511,0.085809588432312,0.017645563930273,-0.071900621056557,0.014548022300005,0.035832285881042,-0.085650973021984,-0.076921112835407,0.065151065587997,0.018804308027029) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.447871088981628,0.035359416157007,0.001442611566745,0.077518105506897) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_4x_Photo] mapping 5_4

vec4 hook()
{
vec4 res = vec4(0.018018690869212,-0.163791745901108,-0.183973237872124,0.007865135557950);
res += mat4(-0.153318405151367,-0.154646784067154,0.014997226186097,0.142398297786713,0.001980173401535,-0.122063793241978,-0.019224351271987,0.121674261987209,0.051987357437611,0.201456993818283,-0.072260938584805,0.110651217401028,-0.050860282033682,-0.128092408180237,0.039868600666523,-0.136515483260155) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.001749375020154,-0.072854794561863,0.047894626855850,0.029892317950726,0.079609908163548,-0.055522877722979,0.057217538356781,0.222794085741043,-0.006278515327722,0.287026554346085,-0.047523785382509,-0.034234050661325,-0.233917742967606,-0.139949277043343,0.067005559802055,-0.131921246647835) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.008902462199330,-0.034543260931969,0.008920942433178,0.092490203678608,-0.093829348683357,-0.037687707692385,0.031244320794940,0.009162329137325,0.023563930764794,0.168417230248451,-0.118834041059017,-0.051450163125992,0.067222505807877,-0.124982684850693,-0.152067855000496,0.011785827577114) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.153064161539078,-0.241812705993652,0.208158344030380,0.111268684267998,-0.216345295310020,-0.149468824267387,0.082076877355576,0.068509504199028,-0.072872295975685,-0.088699817657471,0.033812649548054,0.135971531271935,-0.107197195291519,-0.121772304177284,0.028472010046244,-0.049877278506756) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.144552350044250,0.049502003937960,-0.096086405217648,-0.161966606974602,-0.154024615883827,-0.164117440581322,0.157524541020393,-0.129497423768044,0.009173698723316,-0.253294944763184,0.201146259903908,0.161780714988708,-0.332763999700546,-0.034994062036276,0.009176109917462,-0.032535221427679) * MODEL7_texOff(vec2(0,0));
res += mat4(0.142861530184746,-0.113125652074814,-0.062509007751942,0.104584626853466,-0.014743000268936,0.101977154612541,0.168385431170464,-0.058818079531193,-0.167039811611176,0.081523597240448,-0.030526563525200,-0.275564163923264,-0.258717626333237,-0.174944505095482,-0.118912190198898,-0.092666856944561) * MODEL7_texOff(vec2(0,1));
res += mat4(0.030191911384463,-0.041396304965019,0.000308776361635,0.033122252672911,-0.074387170374393,0.080693565309048,-0.116765074431896,-0.039965644478798,0.136546313762665,0.075960442423820,0.078839533030987,0.068543531000614,-0.097102388739586,-0.089894384145737,0.005757316481322,-0.011482162401080) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.036158870905638,-0.072831787168980,-0.179794207215309,-0.109394341707230,-0.139269158244133,0.198891267180443,-0.103883415460587,-0.009732158854604,-0.339454531669617,0.087874673306942,-0.026997486129403,-0.008889394812286,-0.143784984946251,-0.046743426471949,-0.019299264997244,-0.029049638658762) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.047387987375259,0.057482078671455,-0.086511902511120,0.025903781875968,0.055242676287889,0.186155244708061,0.074989564716816,0.007975411601365,0.155507817864418,-0.194010704755783,0.068628840148449,-0.074533499777317,-0.182296842336655,-0.035412412136793,-0.130211874842644,-0.041838694363832) * MODEL7_texOff(vec2(1,1));
res += mat4(0.039188370108604,-0.085586182773113,0.016912158578634,-0.119655869901180,-0.029529720544815,0.190052807331085,-0.063245728611946,0.034992355853319,0.066029526293278,-0.009962138719857,0.102572336792946,0.097467459738255,-0.038963913917542,0.076128073036671,-0.103204742074013,0.097111046314240) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.037736576050520,0.007559422403574,-0.084105290472507,-0.075119800865650,0.109336376190186,0.116042897105217,-0.158137813210487,-0.066433697938919,0.056952770799398,-0.271260052919388,0.092645362019539,-0.000267073424766,0.030044507235289,0.116356700658798,-0.082330211997032,0.132913127541542) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.065114378929138,0.042477708309889,-0.135535106062889,-0.047324534505606,0.128855556249619,0.125908449292183,-0.031680721789598,0.067363008856773,-0.041131354868412,0.232477620244026,0.088421352207661,0.353055357933044,-0.092794276773930,-0.097632870078087,0.193952828645706,-0.057817585766315) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.080515272915363,-0.072109356522560,-0.190233871340752,-0.118486799299717,0.029829734936357,0.204069137573242,0.010041778907180,-0.059205766767263,-0.098810382187366,-0.118486091494560,0.025662686675787,-0.121304556727409,0.048251632601023,-0.017327837646008,-0.045841813087463,-0.068460270762444) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.022411009296775,-0.069993436336517,-0.171379923820496,0.145255789160728,0.011653998866677,0.201555371284485,-0.130120560526848,-0.120522774755955,0.076378017663956,0.005941336974502,-0.067100837826729,-0.133346915245056,-0.127166762948036,0.039645027369261,-0.062684156000614,-0.050438161939383) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.121898360550404,0.183790296316147,-0.173970147967339,-0.025986814871430,0.177037119865417,-0.043435923755169,0.000961147947237,0.133847177028656,0.087973631918430,0.193706139922142,-0.099909186363220,0.186047002673149,0.017431553453207,-0.130227088928223,-0.215995147824287,-0.113410800695419) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.120838522911072,-0.096723206341267,-0.107847720384598,0.123196542263031,0.011049943976104,0.213503584265709,-0.132060691714287,-0.026284698396921,0.109982207417488,-0.055003203451633,-0.062452174723148,-0.083312354981899,-0.027428520843387,0.141101390123367,0.011446692980826,0.175756424665451) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.099748492240906,0.087421610951424,-0.075196698307991,0.200466915965080,-0.057803723961115,0.051486406475306,0.046691175550222,0.062007408589125,0.196567058563232,-0.474421679973602,0.223397925496101,0.120283037424088,-0.151261612772942,0.032913647592068,0.068552426993847,0.084989063441753) * MODEL8_texOff(vec2(1,0));
res += mat4(0.038506768643856,0.074915714561939,-0.024649556726217,-0.130293667316437,0.061698265373707,0.156121224164963,0.016881722956896,-0.067653283476830,-0.120913580060005,0.080439627170563,0.103321634232998,-0.321456104516983,-0.086122281849384,0.037461936473846,0.013217814266682,-0.000874510558788) * MODEL8_texOff(vec2(1,1));
res += mat4(0.074357196688652,0.085906200110912,0.026013454422355,-0.224063232541084,0.097293570637703,0.274642080068588,-0.050783045589924,-0.014263635501266,-0.089837744832039,-0.076010212302208,-0.003156852908432,-0.031303804367781,-0.084080554544926,0.064566269516945,0.012117660604417,-0.245471745729446) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.068251565098763,0.001753361313604,0.014518353156745,-0.158684387803078,0.047035638242960,0.182003051042557,-0.180226400494576,0.135006934404373,-0.093455485999584,-0.040037564933300,0.095183722674847,-0.094178080558777,0.158127754926682,-0.115284956991673,-0.058759827166796,0.124442860484123) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.123620338737965,-0.061919499188662,0.057714346796274,-0.037226628512144,-0.124459408223629,0.232573315501213,-0.151720687747002,-0.022532256320119,-0.193113565444946,0.138029307126999,-0.104963764548302,0.019820204004645,0.015152364969254,0.114763163030148,0.025592483580112,0.210044607520103) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.143723502755165,0.072674736380577,-0.026078235358000,-0.071198105812073,-0.120551742613316,0.182081252336502,-0.023177092894912,0.072131901979446,0.005290839355439,0.133901089429855,0.175966009497643,0.023820502683520,-0.095437951385975,0.003983446862549,-0.065146051347256,0.002895838348195) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.047656629234552,0.137516289949417,0.029146980494261,0.034317001700401,-0.077230080962181,0.314138501882553,-0.150133222341537,-0.071663498878479,0.122852377593517,0.053262308239937,0.217869594693184,-0.019867593422532,0.054507795721292,-0.309048175811768,0.019842697307467,0.248658433556557) * MODEL9_texOff(vec2(0,0));
res += mat4(0.096256926655769,-0.037108760327101,0.018832501024008,0.061747480183840,-0.064452983438969,0.228886634111404,-0.164702579379082,0.070869490504265,0.321414381265640,0.006186699029058,0.236316919326782,-0.071448817849159,0.029515396803617,-0.037382312119007,0.025570580735803,-0.193040341138840) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.012670771218836,-0.069831274449825,0.145286515355110,-0.145188689231873,0.102559074759483,0.243664845824242,-0.106956534087658,-0.082711383700371,0.046595785766840,0.046775583177805,-0.011117676272988,0.151041120290756,-0.018789714202285,0.032126493752003,-0.123355276882648,0.001223224448040) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.077009364962578,0.066186279058456,0.085476897656918,0.023243229836226,-0.060805104672909,0.190644413232803,-0.069998905062675,0.074693314731121,-0.024691725149751,0.022364990785718,0.039524748921394,0.032840266823769,-0.150947690010071,-0.000277548184386,-0.015686646103859,0.128769233822823) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.070482574403286,-0.004700724501163,0.015827957540751,0.023244114592671,-0.019539635628462,0.264477849006653,-0.187610670924187,0.034409947693348,-0.135213539004326,-0.000758132722694,0.118747316300869,0.235491856932640,0.015895945951343,0.190432846546173,0.045500107109547,-0.100488394498825) * MODEL9_texOff(vec2(1,1));
res += mat4(0.103234544396400,-0.061416331678629,-0.038362864404917,-0.047394510358572,0.086998030543327,0.036733053624630,-0.225338622927666,-0.107219241559505,-0.035498760640621,0.169617563486099,-0.064230702817440,-0.099628858268261,-0.025985974818468,0.066393695771694,-0.173179909586906,0.075616881251335) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.151650920510292,0.187802582979202,-0.228089794516563,-0.313334554433823,0.159808933734894,-0.076335556805134,-0.000287207600195,-0.016846545040607,-0.008126733824611,-0.213965535163879,0.285183817148209,0.008068894036114,0.137236148118973,-0.005300670396537,0.008681453764439,0.022075783461332) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.033425241708755,-0.023176092654467,-0.134829118847847,0.230254933238029,-0.038864515721798,-0.064558111131191,-0.116536431014538,-0.335916072130203,-0.083353817462921,0.032662112265825,-0.046967763453722,-0.157853841781616,0.026851749047637,0.033868439495564,-0.101272508502007,-0.225474357604980) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.175919234752655,0.189023375511169,-0.112341627478600,-0.161945611238480,-0.110072262585163,-0.216250672936440,0.288627833127975,0.123437955975533,-0.016746833920479,-0.014184377156198,-0.289085447788239,-0.020397974178195,-0.023617761209607,-0.080167457461357,0.053762905299664,0.073742225766182) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.281824767589569,-0.024447342380881,0.238047271966934,-0.030875323340297,-0.252805024385452,0.103485122323036,-0.110217772424221,0.210373073816299,0.214271530508995,-0.251078218221664,0.196769103407860,0.070562347769737,-0.130341157317162,-0.041855093091726,-0.421282112598419,0.023296818137169) * MODEL10_texOff(vec2(0,0));
res += mat4(0.130418047308922,0.077202521264553,0.206575363874435,-0.022622909396887,0.112490512430668,-0.070589095354080,-0.081861458718777,-0.158850327134132,0.160377949476242,-0.133156523108482,0.131361782550812,-0.000906166445930,-0.018246641382575,0.034411113709211,-0.147417217493057,0.114629589021206) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.041569806635380,0.055678479373455,-0.042156707495451,-0.101305589079857,-0.088508278131485,-0.041384693235159,0.063449554145336,-0.051847692579031,-0.114752538502216,0.100463211536407,0.041808810085058,0.191654026508331,0.042042113840580,-0.006825188174844,-0.130273982882500,-0.032747171819210) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.016646979376674,-0.039596792310476,0.037928700447083,0.164404258131981,-0.219186857342720,-0.096943072974682,-0.028420107439160,0.060409564524889,-0.122002556920052,0.114125899970531,-0.221565157175064,-0.063845537602901,0.002961904043332,-0.131231456995010,-0.027173198759556,-0.045661404728889) * MODEL10_texOff(vec2(1,0));
res += mat4(0.022959871217608,0.086549594998360,-0.102912925183773,-0.062086362391710,-0.086215682327747,0.056220136582851,-0.187339380383492,-0.026319926604629,0.024286516010761,0.162418559193611,-0.144263252615929,0.088539794087410,0.055690657347441,-0.010884824208915,-0.084490127861500,0.113762408494949) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.014396769925952,0.085602208971977,-0.067841775715351,-0.177378922700882,-0.118875674903393,0.062757886946201,0.079483613371849,0.399810016155243,0.138467133045197,0.015596492215991,-0.115245431661606,0.017308816313744,-0.049991883337498,0.015441286377609,-0.078740745782852,-0.279265552759171) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.165037184953690,-0.093067213892937,-0.115643240511417,0.530244827270508,-0.054178792983294,0.052354797720909,-0.019535470753908,-0.088269688189030,0.010441063903272,0.205856338143349,0.101220533251762,-0.056050930172205,0.205077081918716,-0.013544326648116,0.054284024983644,0.215124368667603) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.096918046474457,0.018346821889281,0.043448932468891,-0.432774454355240,-0.072811260819435,0.018055323511362,-0.058059826493263,0.273914724588394,0.131531715393066,-0.183993756771088,0.070636250078678,-0.137328654527664,-0.159006804227829,0.038523465394974,0.222227454185486,0.073764294385910) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.210245460271835,-0.039391901344061,0.125021249055862,0.014726802706718,0.266360044479370,-0.084409028291702,-0.057090096175671,-0.214073091745377,0.052371181547642,0.197528660297394,-0.143372774124146,-0.054270848631859,-0.102450534701347,-0.143913939595222,0.250987559556961,-0.027279809117317) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.299807190895081,-0.045918501913548,0.022849261760712,0.168576106429100,-0.108919791877270,-0.081825159490108,0.077490344643593,0.248719245195389,-0.085355475544930,0.360546737909317,-0.089900866150856,-0.081863500177860,0.056619238108397,0.303349226713181,-0.224784925580025,0.011808076873422) * MODEL11_texOff(vec2(0,0));
res += mat4(0.031327486038208,-0.007358653936535,0.237482473254204,-0.248389035463333,0.116916246712208,0.097605653107166,0.064907848834991,-0.542624235153198,0.230120494961739,-0.207531809806824,0.070197649300098,-0.122520834207535,-0.077582627534866,0.166095346212387,0.013381954282522,-0.036082796752453) * MODEL11_texOff(vec2(0,1));
res += mat4(0.138008370995522,0.054213546216488,-0.012494189664721,-0.062125559896231,0.089555241167545,0.077939413487911,-0.085834607481956,0.063334062695503,0.019896287471056,-0.085658274590969,-0.026078281924129,-0.153152823448181,-0.103070095181465,-0.092602282762527,0.029340058565140,-0.007567994296551) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.201293945312500,0.164915606379509,-0.067772701382637,-0.061589259654284,-0.033234443515539,0.109798938035965,-0.046856008470058,0.208025231957436,0.261447310447693,-0.368015170097351,0.101196363568306,0.092069089412689,-0.046273346990347,0.080144375562668,-0.004644833039492,0.099614724516869) * MODEL11_texOff(vec2(1,0));
res += mat4(0.032756537199020,-0.022494746372104,0.134160503745079,-0.048270896077156,0.177299559116364,-0.016528069972992,0.145975738763809,-0.026933243498206,0.049106940627098,-0.146625235676765,0.092032223939896,-0.068090118467808,-0.174188941717148,0.002593691460788,0.052516814321280,0.255410075187683) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.001675320789218,-0.116720780730247,-0.078862868249416,-0.019548917189240,-0.060333888977766,0.075958117842674,-0.069583743810654,0.025010775774717,0.176014721393585,0.101896114647388,-0.041656076908112,-0.101454727351665,0.046592440456152,0.091605164110661,0.029536781832576,0.011076526716352) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.127658009529114,0.098515108227730,-0.006162132602185,0.061528049409389,0.083156749606133,0.016422411426902,-0.207914426922798,-0.042682148516178,-0.088763341307640,-0.119548596441746,0.008994176052511,-0.174304291605949,0.218632891774178,0.127300232648849,-0.117969602346420,-0.044846281409264) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.104521118104458,-0.016545940190554,-0.022956309840083,-0.115513831377029,-0.022199217230082,-0.108883045613766,-0.174338072538376,-0.202305793762207,0.271705061197281,-0.023742731660604,-0.092370465397835,0.087834499776363,0.257945716381073,-0.110466755926609,-0.028143625706434,0.177027672529221) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.192860230803490,-0.000923956977203,-0.120829850435257,0.160704240202904,0.060007233172655,0.012677339836955,0.116058260202408,0.076119802892208,-0.034766439348459,0.168138772249222,-0.328725159168243,-0.050893533974886,-0.203492879867554,-0.085213348269463,0.010540771298110,0.065453045070171) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.075317926704884,-0.056719191372395,0.134163513779640,-0.144097879528999,0.061346672475338,-0.028180945664644,0.158352583646774,-0.084343716502190,0.129988178610802,-0.600037634372711,0.159625172615051,0.137900933623314,-0.045924413949251,-0.061938058584929,-0.129631772637367,-0.061872061342001) * MODEL12_texOff(vec2(0,0));
res += mat4(0.103644341230392,0.017348058521748,-0.141626462340355,-0.015181717462838,-0.157744675874710,0.127771675586700,0.185464456677437,-0.001130558550358,-0.025562241673470,-0.137397572398186,0.079202815890312,0.117139965295792,0.105147473514080,-0.171216711401939,0.210652023553848,-0.061479736119509) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.001139085390605,-0.108001209795475,-0.010681208223104,-0.024661613628268,0.094312734901905,-0.010039539076388,-0.024197295308113,0.019537838175893,-0.179990321397781,0.199470639228821,-0.182595521211624,0.011333797127008,0.123711541295052,-0.008545638993382,0.028826991096139,0.014398530125618) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.072081804275513,-0.193956077098846,0.079871349036694,-0.115923188626766,-0.149452283978462,-0.050650674849749,-0.109662063419819,-0.148897528648376,-0.121012017130852,0.026423024013638,0.013007969595492,-0.049230527132750,-0.145320311188698,-0.183520838618279,0.031619604676962,0.300440222024918) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.083759695291519,-0.001622416311875,-0.062811233103275,-0.098461352288723,0.099851533770561,-0.094557635486126,-0.051310252398252,0.068363294005394,-0.356228113174438,0.066817291080952,0.084692791104317,-0.124040089547634,-0.131394013762474,-0.081979237496853,0.145702108740807,-0.014693216420710) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.344805508852005,-0.078291445970535,0.159582450985909,-0.110723078250885) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_4x_Photo] mapping 5_5

vec4 hook()
{
vec4 res = vec4(-0.118337646126747,0.042312595993280,-0.106606133282185,-0.057456832379103);
res += mat4(0.032405927777290,0.044122591614723,-0.069323651492596,-0.029768297448754,-0.031416848301888,0.130228653550148,0.087650611996651,-0.115492828190327,-0.055253826081753,0.005512313451618,0.054710555821657,0.085775367915630,0.224027737975121,-0.094208799302578,-0.000052089220844,-0.083711415529251) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.047436337918043,0.004703087266535,0.108907856047153,-0.032227847725153,-0.218370005488396,-0.079664275050163,-0.056661952286959,-0.139333665370941,-0.068323209881783,0.005657796282321,-0.112165324389935,0.022517206147313,0.101959787309170,-0.087550409138203,-0.043340805917978,-0.050316251814365) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.015727154910564,-0.033721823245287,0.008053615689278,-0.181393980979919,-0.005736434366554,-0.116004534065723,-0.132785186171532,0.073465347290039,0.033231761306524,0.021793082356453,-0.090038679540157,-0.069528877735138,-0.185844197869301,-0.166964277625084,0.022183444350958,0.055164620280266) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.096795722842216,0.118118576705456,-0.053241882473230,0.029236413538456,0.049623440951109,-0.076073832809925,0.032823748886585,-0.134985521435738,0.054354730993509,0.077724233269691,0.052925053983927,0.138725548982620,0.055449958890676,-0.111415147781372,0.133322060108185,0.119068600237370) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.011674455367029,-0.090471185743809,0.304858833551407,0.061067976057529,0.170106709003448,-0.102881297469139,-0.003330293809995,0.049449782818556,-0.206895396113396,0.151409909129143,0.192039668560028,-0.085791245102882,-0.035537946969271,-0.060974385589361,0.043435823172331,-0.027766330167651) * MODEL7_texOff(vec2(0,0));
res += mat4(0.191286742687225,0.012006020173430,-0.283859103918076,-0.161175608634949,0.040764532983303,-0.151342362165451,-0.218644827604294,0.295551478862762,-0.116960704326630,-0.100414067506790,-0.054025072604418,0.084363378584385,0.149189025163651,-0.390150398015976,0.037245512008667,-0.035620372742414) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.075916685163975,-0.052099574357271,-0.099610321223736,0.036508910357952,-0.023828271776438,-0.159818559885025,0.068186528980732,-0.145217433571815,-0.108377836644650,-0.036180436611176,0.022138917818666,0.048108547925949,-0.004253301769495,0.017300628125668,-0.015529504977167,-0.074211873114109) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.015904812142253,-0.099970526993275,0.055685702711344,0.035754416137934,0.068269588053226,-0.032557170838118,-0.042955052107573,-0.059731021523476,0.245412185788155,0.019900055602193,-0.074966847896576,0.048070833086967,-0.046265460550785,0.027834778651595,-0.027767846360803,-0.172756552696228) * MODEL7_texOff(vec2(1,0));
res += mat4(0.124436855316162,-0.098077379167080,-0.168400451540947,-0.018316566944122,0.017691869288683,0.022661844268441,-0.005263892002404,-0.046272199600935,0.256838798522949,0.173524111509323,0.116814278066158,-0.214320704340935,-0.060015246272087,-0.032064087688923,0.038167029619217,-0.139597609639168) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.036804303526878,0.062844872474670,0.069946065545082,0.008935544639826,-0.093429423868656,-0.073872722685337,0.175238579511642,0.167532503604889,-0.037177350372076,0.113454394042492,0.004922709427774,0.124223746359348,0.076840542256832,0.060710959136486,0.029618671163917,0.111880302429199) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.077546313405037,0.037133011966944,-0.057552196085453,0.072050958871841,0.006306505762041,0.002743891440332,0.048196304589510,0.097078517079353,-0.066027723252773,0.007097143214196,0.140048325061798,-0.033881779760122,0.218032702803612,0.040382180362940,0.126213401556015,0.126743018627167) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.086590550839901,0.015897059813142,0.055714905261993,-0.018588514998555,-0.180771112442017,0.068319819867611,0.058074936270714,0.220946803689003,-0.109131582081318,-0.070495434105396,0.036615964025259,0.126147732138634,0.027105823159218,-0.045619484037161,0.116452015936375,0.249096348881721) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.088181838393211,-0.016248291358352,-0.040780372917652,-0.091571755707264,0.016859875991940,-0.041675187647343,0.185359671711922,-0.077329523861408,0.060559961944818,0.051018144935369,-0.006221958436072,-0.090584322810173,-0.096754185855389,-0.131044387817383,0.082310549914837,0.000293375691399) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.055281277745962,-0.004627179354429,-0.056656554341316,0.189207941293716,0.140199705958366,0.058643817901611,-0.033134520053864,0.091076150536537,0.159242883324623,0.057514522224665,-0.118134915828705,0.128123551607132,-0.206608667969704,-0.007872374728322,-0.047104705125093,0.053151890635490) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.099437177181244,-0.007094714790583,-0.134590119123459,-0.215372905135155,0.214649870991707,-0.024962371215224,-0.059354420751333,-0.153854295611382,-0.133397743105888,-0.070440359413624,-0.253708571195602,0.143883123993874,-0.001102509093471,-0.047416966408491,0.113486126065254,0.072330787777901) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.166183188557625,0.040601782500744,-0.032812379300594,-0.022339064627886,-0.081561118364334,-0.021785374730825,0.092945888638496,-0.012169381603599,0.053477231413126,-0.089384950697422,0.101021356880665,0.093660667538643,-0.026931289583445,0.052824743092060,0.027122199535370,-0.006050446536392) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.141639485955238,0.055361844599247,-0.178046420216560,-0.086863249540329,-0.056519772857428,0.009609440341592,0.130190730094910,0.002325054025277,-0.048136219382286,0.324614167213440,0.186724990606308,0.090391531586647,0.064454905688763,0.071750789880753,-0.056609805673361,0.025543715804815) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.043035387992859,0.184800028800964,0.050838142633438,-0.063936799764633,0.076914168894291,-0.239849328994751,-0.111365810036659,0.012969582341611,-0.109407387673855,0.078099451959133,-0.113528236746788,0.127436891198158,-0.171251058578491,0.182512179017067,0.003604492638260,0.116401001811028) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.195159763097763,0.045363701879978,0.114638738334179,0.075462765991688,0.025507176294923,-0.037084337323904,-0.111807093024254,-0.112636581063271,-0.169049099087715,0.002624437678605,-0.085322886705399,-0.079097099602222,0.194002538919449,-0.121525928378105,0.005087031051517,0.048217739909887) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.116085506975651,-0.024701416492462,-0.032209977507591,-0.211375668644905,0.214653283357620,-0.015959821641445,0.044310018420219,0.110386036336422,0.016042174771428,-0.032619055360556,0.064535319805145,-0.008431771770120,0.020094068720937,-0.002006532857195,0.023471519351006,-0.079094596207142) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.223047718405724,-0.027042625471950,-0.077569343149662,0.164094299077988,-0.044189713895321,0.014303122647107,-0.090767592191696,-0.111035689711571,0.028206739574671,-0.135791301727295,0.009709856472909,0.146095082163811,0.237394019961357,-0.021561602130532,-0.127259939908981,-0.056161299347878) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.092589870095253,-0.175356462597847,0.149868950247765,0.233500003814697,-0.084680713713169,0.045952960848808,-0.056148529052734,0.035836137831211,0.035617925226688,0.075266480445862,-0.151304274797440,-0.137350827455521,-0.056266572326422,0.090113379061222,0.081152506172657,0.018983930349350) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.126514032483101,-0.028388353064656,0.034957535564899,0.158879354596138,-0.017831975594163,-0.108294330537319,-0.177534699440002,-0.098887428641319,-0.136946514248848,0.014191340655088,0.300684988498688,0.038664855062962,-0.068850509822369,0.014064090326428,0.046807516366243,-0.227551653981209) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.163987115025520,-0.156374529004097,0.057596076279879,0.039008527994156,0.034468062222004,0.088984318077564,-0.080401912331581,-0.103539757430553,-0.136810541152954,0.098791718482971,0.139819875359535,-0.066546924412251,-0.181359201669693,0.040186520665884,-0.177737697958946,-0.014866021461785) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.188971951603889,-0.002238615648821,0.232613518834114,0.013369334861636,-0.093526028096676,-0.086394056677818,-0.036531705409288,0.006848788354546,-0.051016513258219,0.014804508537054,0.009988751262426,0.029836133122444,0.194555491209030,0.046752996742725,-0.043695822358131,-0.176526784896851) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.142474323511124,0.090334370732307,-0.023470504209399,-0.138467133045197,0.082260869443417,-0.018974138423800,-0.115569636225700,0.079737208783627,-0.146379306912422,0.127414479851723,0.090588510036469,0.050069976598024,-0.016077427193522,-0.069048695266247,0.102992333471775,0.091505557298660) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.086765222251415,0.234533518552780,0.077827557921410,-0.048808541148901,-0.042334157973528,0.028933109715581,-0.049809675663710,-0.043751444667578,0.044114835560322,0.043618358671665,-0.123691931366920,0.238920062780380,-0.119473017752171,0.072167553007603,-0.086950510740280,-0.044802043586969) * MODEL9_texOff(vec2(1,1));
res += mat4(0.028195567429066,0.001745513873175,0.061910934746265,0.182421833276749,0.090246841311455,-0.055431596934795,-0.020409487187862,-0.065354660153389,0.027561282739043,0.059503752738237,0.025329146534204,0.198120802640915,0.100037395954132,-0.014514593407512,0.075697705149651,-0.071933254599571) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.188824772834778,-0.104051604866982,-0.130455762147903,0.198527812957764,0.300397396087646,-0.085299067199230,0.022941222414374,-0.100175403058529,-0.129445180296898,0.113488540053368,0.100022464990616,-0.364043653011322,0.090177625417709,-0.070876322686672,-0.005714873783290,-0.119933135807514) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.005956142675132,-0.069611407816410,-0.196627169847488,0.089768275618553,0.048066426068544,-0.167876839637756,0.020146654918790,-0.036476828157902,-0.116510272026062,0.027982711791992,-0.062280721962452,0.029791874811053,0.065054088830948,-0.076092883944511,0.125777691602707,-0.013901293277740) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.151107355952263,-0.035613995045424,0.033852294087410,-0.086256586015224,-0.132389977574348,-0.026451993733644,-0.124815128743649,-0.167903408408165,0.016529900953174,0.299325197935104,0.046800728887320,-0.030362471938133,-0.169327422976494,0.027724463492632,0.081537939608097,-0.157211974263191) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.162560686469078,0.120398409664631,0.494544088840485,0.040227957069874,-0.608298897743225,0.050844088196754,-0.478965997695923,-0.129731684923172,-0.023691253736615,0.146626740694046,0.026306234300137,-0.210444957017899,-0.067301958799362,-0.061647344380617,-0.026979481801391,-0.029602194204926) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.123908445239067,-0.024666108191013,-0.152121141552925,0.023488556966186,-0.107004925608635,-0.002508729696274,-0.130198746919632,-0.107617422938347,-0.047322634607553,0.073165006935596,-0.045180153101683,-0.025777829810977,-0.143307030200958,0.170309215784073,0.062924914062023,0.121673084795475) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.115891911089420,-0.024705555289984,0.078699328005314,-0.076178982853889,-0.025326620787382,0.095956005156040,0.170850723981857,0.089093267917633,-0.004508775193244,0.088012173771858,0.034526821225882,0.001690810895525,0.241532772779465,0.047406848520041,-0.008332689292729,-0.125652015209198) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.030209856107831,0.070949830114841,-0.021332783624530,0.214061826467514,0.132753148674965,0.204104244709015,0.105567589402199,0.298942595720291,-0.059192799031734,-0.450394481420517,-0.112196415662766,-0.061488650739193,-0.022979598492384,0.154819905757904,0.072763837873936,0.046231023967266) * MODEL10_texOff(vec2(1,0));
res += mat4(0.199595794081688,0.163637235760689,-0.108537115156651,0.070809602737427,0.164596006274223,0.034890666604042,-0.065167672932148,0.048221454024315,0.055555507540703,-0.126015454530716,-0.205354541540146,-0.017834704369307,-0.130227178335190,-0.122150547802448,0.088514678180218,-0.059596881270409) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.081273965537548,-0.026968577876687,-0.019637584686279,0.039381124079227,-0.099467426538467,0.011312431655824,-0.038422837853432,0.071493200957775,0.115982979536057,-0.043970551341772,0.098887987434864,-0.172872424125671,0.192367687821388,-0.073801890015602,-0.095537625253201,0.093872733414173) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.045541979372501,0.056677356362343,0.061052009463310,0.061814323067665,-0.040527436882257,-0.113345421850681,0.167180374264717,-0.034259844571352,-0.084084875881672,0.111126624047756,0.150602012872696,-0.114941954612732,0.316815763711929,-0.013870120979846,0.031631007790565,-0.221599638462067) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.245901688933372,0.014627758413553,0.095813430845737,0.196908086538315,-0.128001347184181,-0.046144336462021,-0.054289806634188,-0.022487562149763,-0.250237405300140,-0.082225345075130,0.000021366928195,-0.058296501636505,-0.217256903648376,-0.018302930518985,0.072592966258526,0.016861857846379) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.051615074276924,0.035089202225208,-0.028828328475356,-0.024259686470032,0.005109329242259,0.344788759946823,0.095399662852287,0.026254778727889,-0.132970601320267,0.074736639857292,-0.150234013795853,-0.088482744991779,-0.066267043352127,0.115855850279331,-0.025826703757048,0.042265933007002) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.149065867066383,-0.001958121312782,-0.069590069353580,-0.105090610682964,-0.010925769805908,0.011501179076731,0.128506958484650,0.167361661791801,-0.141890406608582,-0.019187264144421,-0.000230023681070,0.089893549680710,-0.096632294356823,-0.179362252354622,-0.134957835078239,-0.053578924387693) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.267813354730606,0.114212349057198,0.295781433582306,-0.089723192155361,-0.113220378756523,-0.060702133923769,-0.003153990255669,0.074658021330833,0.178432360291481,-0.111370116472244,-0.062184076756239,0.013995295390487,0.121003217995167,0.047020435333252,0.121205940842628,0.027050377801061) * MODEL11_texOff(vec2(0,1));
res += mat4(0.106020800769329,-0.140418022871017,-0.025300426408648,0.132652610540390,-0.052682716399431,0.213142246007919,-0.160309210419655,0.051733441650867,0.103730104863644,-0.042354218661785,0.150584980845451,-0.045095384120941,-0.110713601112366,-0.072094008326530,-0.038648117333651,0.049564912915230) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.002475557150319,-0.294830828905106,0.051193796098232,-0.061188876628876,0.066065482795238,-0.126721829175949,-0.102999135851860,0.102346725761890,-0.159607797861099,0.143097609281540,0.166940927505493,0.058810058981180,-0.065311044454575,0.186113774776459,-0.000189865459106,0.000067351444159) * MODEL11_texOff(vec2(1,0));
res += mat4(0.283884882926941,-0.116435669362545,-0.009385475888848,0.144118577241898,0.003759652609006,0.151167422533035,0.140811219811440,-0.078103885054588,-0.093302197754383,-0.034449156373739,0.015259014442563,0.062863402068615,-0.139155209064484,0.132541507482529,0.051711566746235,-0.029159905388951) * MODEL11_texOff(vec2(1,1));
res += mat4(0.019005846232176,-0.036168262362480,0.166151583194733,0.125930026173592,0.276699811220169,-0.129775956273079,-0.141161724925041,-0.131702497601509,-0.089273400604725,-0.091681420803070,0.000195086351596,0.101478822529316,0.021181017160416,0.007098533213139,0.065163627266884,-0.113475590944290) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.006137574091554,-0.144213706254959,-0.237969383597374,-0.040646165609360,0.176974922418594,0.026871353387833,-0.064034812152386,0.025387948378921,-0.054698776453733,0.025775035843253,-0.041459914296865,-0.129161685705185,0.062806293368340,-0.030893819406629,0.077167347073555,0.036989897489548) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.047300044447184,-0.039099439978600,-0.040317647159100,0.028575781732798,-0.229544013738632,-0.088218420743942,-0.063628837466240,-0.002439613686875,-0.073617950081825,-0.124933749437332,-0.065093480050564,-0.067693807184696,0.327872008085251,-0.077068567276001,0.009717327542603,-0.056675847619772) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.338240653276443,-0.126499906182289,0.074288256466389,-0.219871684908867,0.327123224735260,-0.005680277943611,-0.030649594962597,-0.007784117944539,0.038840908557177,-0.010122489184141,0.023556532338262,0.227198973298073,0.142868056893349,-0.039197362959385,0.128442272543907,-0.035995379090309) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.104006767272949,0.045389808714390,-0.216623812913895,0.064683072268963,-0.243778437376022,0.065083645284176,0.096811689436436,-0.066538177430630,0.135166659951210,0.206963256001472,0.056271959096193,0.043730486184359,0.065791033208370,-0.114604480564594,0.022362858057022,0.020344011485577) * MODEL12_texOff(vec2(0,0));
res += mat4(0.056400366127491,0.036897312849760,-0.206340402364731,-0.103157617151737,0.124157190322876,-0.040050957351923,-0.106862634420395,0.058249805122614,0.005057916976511,-0.098629117012024,-0.174085572361946,0.081078834831715,0.103862203657627,0.007111941464245,0.054105855524540,0.134972870349884) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.015965050086379,0.027336794883013,0.095814608037472,0.066881142556667,-0.113784857094288,0.034444801509380,-0.176234051585197,-0.129503145813942,-0.181648224592209,0.018565900623798,-0.021478770300746,-0.053843472152948,0.091307818889618,0.076514035463333,0.002035638550296,0.067379079759121) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.037909854203463,0.147750690579414,-0.028693377971649,0.038748208433390,0.081486672163010,0.068339735269547,0.063102535903454,-0.229641690850258,0.160812601447105,-0.319477528333664,-0.064157083630562,-0.041348524391651,-0.156479850411415,-0.229067459702492,-0.036181204020977,0.150541275739670) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.174335181713104,0.042625103145838,0.130733191967010,-0.209400787949562,0.201304301619530,0.189383879303932,-0.081636294722557,-0.012660735286772,0.197232469916344,0.003657894209027,0.046694297343493,0.109243117272854,-0.190197944641113,0.178381189703941,-0.092084743082523,0.189023613929749) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.006001463625580,-0.103481650352478,0.114482574164867,0.613121211528778) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_4x_Photo] mapping 5_6

vec4 hook()
{
vec4 res = vec4(-0.132639229297638,0.156314894556999,0.082805246114731,0.020454844459891);
res += mat4(0.006814202759415,-0.091308735311031,0.005837870761752,0.106603890657425,-0.005166564136744,-0.117739878594875,-0.016021827235818,-0.081186935305595,-0.042055636644363,0.109200075268745,0.091975547373295,-0.102796800434589,-0.146205872297287,0.071308486163616,-0.062091503292322,-0.126116052269936) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.043499931693077,-0.041428171098232,0.020246483385563,0.057211868464947,-0.026353167369962,-0.077036172151566,0.193223446607590,-0.121279932558537,-0.093132637441158,0.206388086080551,0.166645035147667,-0.211524039506912,-0.046338047832251,0.088069550693035,-0.116628989577293,-0.407024860382080) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.111781820654869,-0.004000660497695,-0.067019104957581,0.137747541069984,-0.095565095543861,0.040276557207108,0.005573783535510,-0.189939454197884,0.042569082230330,0.153943136334419,0.012575946748257,-0.295361906290054,-0.058202471584082,0.129598990082741,-0.130911335349083,-0.033865939825773) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.147347286343575,-0.097152873873711,0.042539980262518,-0.163227036595345,0.044956710189581,-0.193084135651588,-0.088471762835979,0.097905337810516,0.102866530418396,-0.065885521471500,-0.172373443841934,0.153793796896935,-0.065602011978626,0.037726674228907,-0.103935644030571,-0.029067229479551) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.032378379255533,-0.081868544220924,-0.036026183515787,0.024123786017299,-0.054604236036539,-0.172932133078575,0.080279663205147,0.226549819111824,-0.048754774034023,-0.231903642416000,-0.435557603836060,-0.072140954434872,0.122988425195217,0.106072619557381,-0.145741298794746,0.002186519792303) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.045162167400122,-0.080211237072945,0.060869533568621,-0.195886820554733,-0.055186986923218,0.117051258683205,-0.086152262985706,0.068511106073856,-0.004377354867756,0.203966647386551,0.084697015583515,0.178474426269531,-0.324983924627304,0.031613491475582,-0.025543574243784,-0.065806426107883) * MODEL7_texOff(vec2(0,1));
res += mat4(0.123302578926086,-0.132866725325584,0.055988375097513,0.054759610444307,0.103200882673264,0.155033931136131,0.215550258755684,-0.095496580004692,0.018173959106207,-0.119169734418392,0.005462203174829,0.066312693059444,-0.145495280623436,-0.002915739780292,-0.059336129575968,0.098974123597145) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.021483056247234,0.082062534987926,-0.063979543745518,0.002074878429994,-0.110735401511192,0.062711052596569,0.094725675880909,0.026110814884305,-0.023353863507509,-0.043197359889746,0.542097687721252,-0.015533772297204,0.251514375209808,0.028578307479620,-0.137100741267204,-0.037577379494905) * MODEL7_texOff(vec2(1,0));
res += mat4(0.173818066716194,0.066534437239170,0.010850106365979,0.022064786404371,-0.139789059758186,0.198053672909737,0.023646004498005,-0.050344467163086,0.014017518609762,-0.132769376039505,-0.365796148777008,-0.074693150818348,-0.075172118842602,0.094854630529881,-0.120619170367718,0.024249847978354) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.016418593004346,-0.001874531386420,-0.016472931951284,0.055639836937189,-0.068697161972523,-0.005339224822819,0.056792855262756,0.062066111713648,0.013152956031263,-0.013572693802416,0.025462232530117,-0.074062831699848,0.004191807471216,-0.061409872025251,0.002715835347772,-0.049214754253626) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.170395553112030,-0.002889862749726,-0.002409646986052,0.082597970962524,0.141105726361275,0.166569322347641,0.057673774659634,-0.058410272002220,0.241310566663742,-0.238910138607025,-0.252627223730087,-0.057157367467880,0.147462710738182,0.046883732080460,0.087716586887836,-0.002232989063486) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.041916485875845,-0.033182311803102,0.068466074764729,0.088876381516457,-0.018106725066900,-0.027741903439164,-0.040418412536383,-0.019335325807333,0.076354421675205,0.091609112918377,-0.021887009963393,-0.028112767264247,-0.045723296701908,-0.139962494373322,-0.027511296793818,-0.063657134771347) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.049453474581242,-0.132246106863022,0.106178268790245,0.089161269366741,-0.023826511576772,0.070387452840805,0.011956750415266,0.077662356197834,0.004943315871060,-0.035409100353718,0.024601606652141,0.171300411224365,0.012224429287016,0.179562509059906,-0.058838721364737,0.071176819503307) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.043049592524767,0.143358990550041,0.068490371108055,-0.332999050617218,-0.155135080218315,0.032950717955828,0.105613827705383,0.099177785217762,0.029394732788205,-0.024615753442049,0.363659441471100,-0.116482727229595,0.023549200966954,0.010788832791150,0.149570375680923,0.060474824160337) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.026164636015892,0.099203899502754,0.019912082701921,0.237961351871490,0.122862100601196,0.200523793697357,-0.063064500689507,0.098500199615955,-0.172078534960747,0.118004292249680,0.130426481366158,0.067903824150562,-0.199597969651222,-0.126909032464027,0.047516830265522,-0.008045348338783) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.063091777265072,0.067706927657127,-0.039781890809536,-0.106901332736015,0.042760260403156,0.004570441786200,0.020328916609287,0.025492008775473,0.027214260771871,0.029969671741128,-0.047517132014036,-0.002809545956552,0.065339237451553,-0.029872801154852,0.000754323380534,-0.051931362599134) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.143164291977882,0.039882365614176,0.082917712628841,0.145374760031700,-0.218383923172951,0.056800734251738,-0.093535184860229,0.035167351365089,0.222124367952347,-0.132909744977951,-0.220939129590988,0.003002018202096,0.097843065857887,0.131448134779930,0.090533621609211,0.055591426789761) * MODEL8_texOff(vec2(1,0));
res += mat4(0.080684050917625,0.004247068427503,0.084484048187733,0.162073776125908,0.327162325382233,-0.051660921424627,0.059042777866125,-0.007836835458875,-0.055689468979836,0.022824417799711,0.057176049798727,0.114114150404930,-0.119525931775570,0.040855895727873,0.035371016710997,0.088738098740578) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.135772302746773,-0.047472748905420,0.026151506230235,-0.167188569903374,0.010194892995059,0.178819268941879,-0.048531167209148,0.049746707081795,-0.099105678498745,-0.032999783754349,-0.066257603466511,-0.032996516674757,-0.087361805140972,0.114140555262566,-0.003772645490244,-0.113643400371075) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.039371900260448,0.083006851375103,0.157633885741234,-0.432020485401154,0.098470449447632,0.113128237426281,-0.056237980723381,0.089667648077011,-0.106440648436546,-0.038207825273275,-0.041611377149820,-0.093980781733990,-0.098393730819225,0.100004605948925,-0.151050344109535,-0.062769807875156) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.101916305720806,-0.008054488338530,0.005697941407561,-0.203448057174683,-0.037332579493523,0.040592793375254,-0.015180961228907,0.004741831216961,-0.169715911149979,-0.011115579865873,-0.074412271380424,0.046813968569040,-0.007874939590693,0.105926394462585,-0.031790226697922,0.031588442623615) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.019697537645698,-0.089103199541569,-0.090625531971455,0.125652819871902,-0.196295604109764,0.083311885595322,0.024729207158089,-0.087802127003670,0.071689456701279,0.187605604529381,-0.035998940467834,-0.111052587628365,-0.082618579268456,0.038270402699709,-0.014048228971660,-0.182748958468437) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.008439996279776,-0.044481813907623,-0.195928052067757,0.131202712655067,0.131271749734879,0.184113234281540,-0.006399484351277,-0.047771509736776,-0.058289267122746,-0.097236782312393,0.060751747339964,0.036808457225561,0.103770062327385,-0.291225552558899,-0.050215452909470,0.093239888548851) * MODEL9_texOff(vec2(0,0));
res += mat4(0.044272378087044,-0.028195099905133,-0.022866053506732,-0.045162182301283,-0.160236239433289,0.118849940598011,0.215192660689354,-0.048476006835699,-0.111244976520538,0.007038501091301,0.133496150374413,-0.213875189423561,-0.055086199194193,-0.066401511430740,-0.029181288555264,-0.029347671195865) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.055523801594973,-0.024263344705105,-0.238412022590637,-0.006418003235012,0.019938439130783,0.174268558621407,-0.109618403017521,0.009942852891982,0.054443418979645,0.125633224844933,-0.090113803744316,-0.054091200232506,-0.095437429845333,0.094580084085464,0.119500987231731,-0.013692179694772) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.032551128417253,-0.073540180921555,-0.113147087395191,-0.058631949126720,0.058760005980730,0.247799396514893,-0.056789722293615,0.009438442997634,0.089415416121483,0.021646536886692,0.099472433328629,-0.087154872715473,0.101412221789360,0.019373422488570,0.099751040339470,-0.151434957981110) * MODEL9_texOff(vec2(1,0));
res += mat4(0.010868672281504,-0.070667296648026,-0.095971971750259,0.051146566867828,0.047012943774462,0.184652939438820,-0.088150516152382,-0.070818044245243,-0.174128353595734,-0.028744671493769,0.107247583568096,0.067332364618778,0.041584279388189,0.152387902140617,0.111254826188087,0.066439509391785) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.050019409507513,-0.007275281473994,-0.117750100791454,-0.024004125967622,0.084670960903168,0.008795016445220,-0.000781467882916,-0.250732243061066,0.058821354061365,0.245718792080879,0.176751151680946,0.038797225803137,-0.066468432545662,0.027565799653530,-0.063581697642803,0.004486174322665) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.091368548572063,0.012330112978816,-0.031030371785164,-0.027868634089828,0.099595718085766,0.004280565772206,0.027622887864709,-0.108600042760372,-0.090395107865334,-0.176871821284294,-0.141458138823509,0.070043705403805,-0.086934722959995,-0.043498609215021,0.061578508466482,0.081977702677250) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.074447937309742,0.014176052995026,-0.008409664034843,-0.068727731704712,-0.087544456124306,-0.023832930251956,-0.102449975907803,0.083415947854519,0.038531094789505,0.104149498045444,-0.087537653744221,0.112536683678627,-0.007379579823464,-0.141630873084068,0.004923895467073,0.126578480005264) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.045480180531740,0.012288942001760,-0.026098093017936,0.077179908752441,0.043355625122786,0.069165661931038,0.026681795716286,-0.154256835579872,0.064804136753082,0.238479167222977,-0.050202693790197,-0.105174824595451,0.087379947304726,0.144438520073891,-0.042306542396545,-0.018856234848499) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.027945900335908,0.207935526967049,0.021281754598022,-0.058241210877895,-0.073364146053791,0.092369474470615,-0.035725172609091,-0.264187514781952,-0.140290290117264,-0.432766288518906,-0.222148209810257,0.102538064122200,-0.065072484314442,-0.173791676759720,0.104612439870834,0.077274903655052) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.152713879942894,0.148608863353729,0.140667468309402,-0.022455319762230,0.188500955700874,0.038527511060238,-0.123489283025265,0.159471198916435,0.158570498228073,-0.068994447588921,-0.134949579834938,-0.049559395760298,0.016160465776920,-0.093512438237667,-0.014786005020142,-0.049835439771414) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.092286705970764,0.097961604595184,0.066144146025181,-0.076819360256195,0.124848552048206,-0.061374120414257,-0.024738729000092,-0.161365628242493,-0.171190500259399,0.039176713675261,0.043702453374863,-0.201839730143547,0.121852725744247,0.047518078237772,-0.059833399951458,-0.008071802556515) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.064630500972271,-0.124897494912148,0.149791702628136,0.149918377399445,-0.372914284467697,-0.046626038849354,0.092320017516613,-0.041017662733793,0.093062661588192,0.228134885430336,0.573839485645294,-0.029510984197259,-0.098596058785915,0.002550396369770,-0.008777220733464,0.106838621199131) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.295538246631622,0.000880870851688,0.185417711734772,-0.068892769515514,0.235037922859192,0.033300481736660,-0.007437258958817,0.141954377293587,0.140925824642181,0.068859256803989,0.134967222809792,0.076263695955276,0.099233619868755,0.014763970859349,-0.072885215282440,0.239907741546631) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.018684791401029,-0.018896127119660,0.081141740083694,0.086900822818279,-0.048595901578665,-0.050897281616926,-0.016295259818435,-0.015909213572741,0.013209213502705,0.133604332804680,-0.033220488578081,0.052012316882610,-0.012402758002281,0.058662805706263,0.124300815165043,0.005060852505267) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.133504688739777,-0.070843234658241,-0.087107852101326,-0.010015534237027,-0.086698204278946,0.066638939082623,-0.068240456283092,0.118493691086769,0.003826193045825,0.132863402366638,-0.068089663982391,0.033678036183119,0.218972265720367,-0.012893610633910,-0.300812453031540,0.100651681423187) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.026216957718134,-0.045834261924028,-0.068561568856239,0.160609781742096,-0.191072598099709,-0.062769137322903,0.163222253322601,-0.267940580844879,0.018693335354328,-0.093111313879490,0.037503059953451,0.035683173686266,0.122313477098942,-0.002407439984381,0.046467129141092,0.097681179642677) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.225165814161301,-0.124724075198174,-0.102687470614910,0.063271164894104,0.230830699205399,-0.038943052291870,0.045177049934864,-0.200268000364304,0.099628001451492,0.097992673516273,0.048395432531834,0.051492150872946,-0.175534456968307,-0.233994245529175,-0.242113769054413,-0.039471197873354) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.085100390017033,-0.126095205545425,0.161209315061569,0.116272360086441,0.001134260790423,-0.027843665331602,-0.021382533013821,-0.244949698448181,-0.116699382662773,0.065378151834011,0.040415972471237,-0.346597880125046,0.262900471687317,0.208331108093262,0.510643184185028,-0.028551110997796) * MODEL11_texOff(vec2(0,0));
res += mat4(0.120604813098907,0.089732818305492,0.109610311686993,0.048935901373625,0.107285119593143,-0.013832542113960,0.019134245812893,-0.021037722006440,0.063714869320393,-0.030024752020836,-0.087874121963978,-0.094584017992020,-0.149468421936035,-0.064491450786591,0.132331505417824,-0.042520955204964) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.174894675612450,-0.043171085417271,0.147178247570992,0.071620069444180,0.061830628663301,0.037043526768684,0.112197808921337,-0.084356807172298,0.001281376346014,0.023651268333197,0.102860584855080,-0.047898080199957,-0.174241021275520,-0.009761461056769,0.073738805949688,-0.019809056073427) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.320221990346909,0.002150947693735,0.271604865789413,0.007401075679809,0.142121613025665,-0.018376164138317,0.014280965551734,-0.312764704227448,-0.005005831364542,-0.056223586201668,0.054631661623716,0.002608380280435,-0.005939141847193,-0.016366556286812,-0.157260745763779,-0.071361064910889) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.212073639035225,-0.062630496919155,0.037146832793951,-0.007522298488766,-0.235214874148369,-0.024871869012713,-0.017807288095355,-0.121333353221416,0.315867483615875,-0.060287594795227,0.043032042682171,-0.024095950648189,0.108559899032116,-0.078822068870068,0.004512289073318,-0.125966176390648) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.008791872300208,0.045728869736195,-0.068518251180649,-0.081130079925060,-0.100095033645630,0.098332278430462,-0.083088599145412,0.099802598357201,-0.010516671463847,0.213633388280869,0.016100384294987,-0.024631291627884,0.092320352792740,0.015514804981649,0.118980638682842,-0.248262077569962) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.008135147392750,0.072410777211189,0.006160150282085,-0.160358294844627,-0.000310292729409,-0.029183769598603,-0.111903376877308,0.153373211622238,-0.036597859114408,-0.106652528047562,-0.042268224060535,-0.107574142515659,-0.115023739635944,0.156599491834641,0.087159715592861,0.170727327466011) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.067996948957443,0.050369959324598,0.042350329458714,0.130577772855759,-0.074509143829346,-0.062155745923519,-0.016092233359814,0.131972804665565,0.113354422152042,0.061688862740993,-0.118590399622917,0.034341100603342,-0.043368134647608,0.035521816462278,0.065651252865791,-0.045007195323706) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.067938707768917,-0.067812696099281,0.046814702451229,0.014528134837747,0.019765658304095,0.029238868504763,-0.080915816128254,0.209417313337326,0.005669164005667,0.290278226137161,-0.062650129199028,-0.082956023514271,-0.108090348541737,0.023147372528911,-0.052571132779121,-0.230048239231110) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.029233299195766,-0.165648654103279,-0.100337773561478,0.112312264740467,-0.136705666780472,0.061615232378244,0.015899367630482,-0.265692770481110,0.172070205211639,-0.397443324327469,-0.295697659254074,0.079528324306011,0.149741500616074,-0.276626557111740,-0.156196787953377,0.447976589202881) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.089827574789524,-0.012837845832109,-0.030507178977132,0.234107479453087,0.100988015532494,0.017502732574940,-0.001986691961065,0.185366675257683,0.036654897034168,0.010452894493937,0.004920854233205,-0.026351125910878,-0.062193930149078,-0.155184507369995,-0.124818034470081,-0.228128805756569) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.094882711768150,-0.094135031104088,-0.038845051079988,-0.012132770381868,0.111561760306358,-0.001807318767533,0.025901254266500,0.044410262256861,-0.313905268907547,0.243482425808907,0.120954178273678,-0.026355165988207,0.109006471931934,0.037877254188061,0.076664000749588,0.065741896629333) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.022296052426100,-0.106105074286461,-0.176034197211266,-0.029123913496733,-0.200926452875137,-0.053554654121399,0.120262995362282,0.249888390302658,0.239050105214119,-0.060097854584455,0.298076033592224,0.092685744166374,-0.158347234129906,0.080706372857094,-0.081786774098873,-0.026183847337961) * MODEL12_texOff(vec2(1,0));
res += mat4(0.186103731393814,-0.036427952349186,0.040289420634508,0.021281987428665,-0.048819266259670,0.027042882516980,0.137417048215866,0.111075125634670,-0.074870385229588,0.059883158653975,0.067846305668354,0.042614519596100,-0.223323225975037,-0.094551682472229,-0.031862422823906,0.111413523554802) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.011052821762860,0.138927996158600,0.572489678859711,0.448456436395645) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_4x_Photo] mapping 6_1

vec4 hook()
{
vec4 res = vec4(-0.079170510172844,0.027807014063001,0.055209144949913,-0.066455446183681);
res += mat4(-0.078640311956406,0.135967090725899,-0.005818541161716,0.115820728242397,-0.227780625224113,0.061478111892939,-0.043563894927502,0.062412098050117,-0.021851163357496,0.026417031884193,-0.048019487410784,0.087958551943302,-0.001532589085400,0.002459703013301,-0.039530619978905,-0.006140395998955) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.120699107646942,-0.189286991953850,-0.015696942806244,-0.129799306392670,-0.281921416521072,-0.163336470723152,0.045187186449766,0.061211328953505,-0.153076872229576,-0.012325298041105,-0.114009484648705,0.006195094436407,-0.040380597114563,-0.182623520493507,0.203993350267410,0.085048444569111) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.099199116230011,0.057822853326797,0.102215088903904,0.024485092610121,0.088096953928471,0.092454120516777,-0.024296177551150,0.025232966989279,-0.108997851610184,0.002965194638819,-0.051301725208759,-0.079378366470337,0.092791929841042,-0.028503067791462,-0.029478292912245,-0.114236250519753) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.066626392304897,-0.131426900625229,0.195417582988739,0.134085431694984,-0.108287446200848,0.120399162173271,0.014271383173764,0.163811221718788,-0.117947824299335,-0.002588012721390,-0.073381222784519,0.057195287197828,0.003308003768325,-0.034669101238251,0.123966298997402,0.176685109734535) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.015648359432817,-0.163765743374825,-0.507430255413055,-0.306685805320740,-0.002954807598144,-0.420564204454422,0.389109462499619,-0.210582375526428,0.119731985032558,-0.033266592770815,-0.059245642274618,-0.044265974313021,0.341928869485855,-0.087919704616070,-0.155403777956963,-0.002439914038405) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.039768651127815,0.260083764791489,0.274973601102829,0.029425276443362,0.068840675055981,0.290557563304901,0.011007973924279,-0.146065533161163,-0.072853051126003,-0.067162416875362,-0.048504337668419,0.064464755356312,0.129732146859169,0.338110476732254,0.262400060892105,0.010611238889396) * MODEL1_texOff(vec2(0,1));
res += mat4(0.078472740948200,-0.115414626896381,0.045511052012444,0.042501319199800,-0.003389956429601,0.028004651889205,-0.010487953200936,0.071431480348110,0.032165497541428,0.044208649545908,0.004297384992242,-0.050199698656797,0.015558871440589,0.076214693486691,0.088451027870178,0.115422442555428) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.067133866250515,0.036574635654688,-0.067527554929256,-0.187418416142464,-0.123531483113766,0.124007761478424,-0.108959645032883,0.127819180488586,0.154462918639183,0.109898947179317,-0.146298080682755,-0.018280606716871,0.034892633557320,0.106275670230389,0.052596814930439,-0.036546401679516) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.046948596835136,0.094458259642124,0.116609126329422,0.133465811610222,-0.006336332298815,-0.005950588732958,-0.054607875645161,-0.017575016245246,-0.009801929816604,-0.128194689750671,0.037557009607553,-0.064034193754196,0.096357308328152,-0.025316538289189,0.015656456351280,-0.029969308525324) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.360058665275574,-0.125487938523293,0.063682623207569,-0.093307740986347,0.127091288566589,0.077968217432499,-0.012950216419995,0.209727048873901,-0.019118083640933,0.014785295352340,-0.002517951186746,-0.044365275651217,-0.184049695730209,-0.132763758301735,0.005335307214409,-0.018868587911129) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.068487785756588,0.048244930803776,0.073336511850357,-0.178243055939674,-0.001166195143014,-0.133441418409348,0.020269626751542,0.145105883479118,0.075134985148907,0.067200988531113,-0.105888105928898,-0.126082673668861,-0.036289185285568,0.106086142361164,0.137229278683662,0.387601137161255) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.091289155185223,-0.029252430424094,0.011121111921966,-0.181395545601845,0.132224947214127,-0.024294588714838,0.005402829963714,-0.069411806762218,0.206726372241974,0.047978118062019,-0.083696745336056,0.104080751538277,-0.099557317793369,-0.083917163312435,0.002988699357957,-0.323323369026184) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.011235983110964,-0.007584706414491,-0.036940772086382,-0.166199177503586,0.030368899926543,-0.027194444090128,0.057260170578957,0.099318370223045,-0.039556678384542,0.216601014137268,0.112641900777817,0.054776318371296,-0.088230565190315,0.023928275331855,0.004916971083730,-0.012167029082775) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.103436797857285,-0.046418622136116,-0.035480044782162,0.234115794301033,-0.217974796891212,-0.003044011536986,0.032344922423363,0.011079259216785,0.009869135916233,-0.062284085899591,-0.044923473149538,-0.188164293766022,-0.317933887243271,-0.125544890761375,-0.066727533936501,-0.205765679478645) * MODEL2_texOff(vec2(0,0));
res += mat4(0.171508848667145,0.237905845046043,0.015581294894218,0.025778828188777,-0.063795529305935,-0.044719900935888,0.011198634281754,-0.064136713743210,0.374125003814697,-0.019995555281639,-0.094135187566280,-0.164889886975288,-0.086770974099636,0.022275451570749,0.007556906435639,0.188191115856171) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.165905416011810,-0.104103259742260,-0.016963234171271,-0.023007705807686,0.175864413380623,0.027825588360429,0.045257717370987,0.215222731232643,0.019525755196810,0.072062373161316,0.025072747841477,0.159487962722778,-0.057914081960917,-0.070607356727123,-0.046599511057138,0.026653703302145) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.208236187696457,0.092140518128872,-0.056829985231161,0.142361819744110,0.025515496730804,-0.116973042488098,0.064507432281971,0.042742017656565,0.065031856298447,0.040537156164646,0.062179565429688,-0.009177059866488,0.023617569357157,-0.256251871585846,-0.044024158269167,-0.111328788101673) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.019186157733202,-0.039739336818457,-0.023988770321012,0.090935029089451,0.167831867933273,-0.053246758878231,-0.008415837772191,0.095452152192593,0.174191161990166,-0.073050230741501,0.023739175871015,-0.206211447715759,0.010856068693101,0.169735550880432,-0.047552596777678,-0.098731920123100) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.068760402500629,-0.034531462937593,-0.027389589697123,-0.118908412754536,0.041214801371098,-0.042935777455568,-0.041349966078997,-0.059695582836866,0.132027447223663,0.021705662831664,0.015424842014909,-0.074565030634403,-0.247980669140816,-0.082157313823700,-0.043711349368095,-0.194678813219070) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.527091443538666,-0.040682274848223,0.021585293114185,0.044036015868187,0.002887385198846,0.020546713843942,0.027910182252526,-0.041613444685936,-0.032902996987104,0.064356103539467,0.121015347540379,0.196460813283920,-0.110939115285873,-0.073166020214558,-0.040078081190586,-0.054613482207060) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.192653104662895,-0.036210957914591,-0.016178200021386,-0.045420274138451,0.029002187773585,0.066649630665779,-0.002118300180882,0.205590069293976,0.188126817345619,-0.069874331355095,0.070881336927414,-0.170309633016586,-0.002806412056088,0.104117877781391,0.036709118634462,-0.004816022235900) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.039356768131256,0.045957792550325,-0.089455209672451,-0.109205752611160,0.039431579411030,0.211367934942245,0.078678674995899,-0.076857671141624,0.043811567127705,-0.119965963065624,-0.049567736685276,-0.114170566201210,0.099072895944118,0.274215906858444,-0.272817611694336,-0.535640656948090) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.208328053355217,0.135398760437965,0.054765626788139,0.077597357332706,-0.140910699963570,-0.250070840120316,0.060350511223078,0.035889014601707,0.070441894233227,0.097911790013313,0.100287988781929,0.203131750226021,-0.042987164109945,-0.078309617936611,0.196198642253876,0.167871117591858) * MODEL3_texOff(vec2(0,0));
res += mat4(0.169184595346451,0.262073278427124,-0.008186498656869,0.175033122301102,-0.006851339712739,0.094866693019867,0.010734460316598,0.120615892112255,-0.086160257458687,0.052399337291718,0.086002700030804,-0.224980995059013,-0.024200033396482,0.115885183215141,0.037700656801462,-0.034814659506083) * MODEL3_texOff(vec2(0,1));
res += mat4(0.017673004418612,-0.075388044118881,-0.045399818569422,-0.107686556875706,-0.176212221384048,-0.023064946755767,0.039624396711588,0.115731507539749,-0.087135016918182,-0.038362931460142,-0.003864016849548,-0.072607196867466,0.086943067610264,-0.078244797885418,-0.047821160405874,-0.207641065120697) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.064276762306690,0.040263868868351,0.033295933157206,-0.020307563245296,-0.257356792688370,-0.286930024623871,0.159959420561790,0.117440052330494,-0.106198437511921,-0.016968060284853,-0.054578449577093,-0.039568666368723,0.186904028058052,-0.048053391277790,-0.064046718180180,-0.047069273889065) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.004155831411481,-0.021896233782172,0.087777063250542,-0.042869478464127,-0.061308301985264,0.070146888494492,0.008431131951511,-0.147478729486465,-0.064458519220352,-0.053347125649452,0.001611383981071,0.015990912914276,0.016553744673729,-0.025178113952279,0.042357977479696,-0.070183053612709) * MODEL3_texOff(vec2(1,1));
res += mat4(0.019102713093162,0.001269904663786,0.064866378903389,0.079276382923126,0.001573985908180,-0.212653413414955,-0.069800570607185,-0.096103638410568,0.096702814102173,-0.056912917643785,-0.053775601089001,-0.077520646154881,0.092522710561752,0.099741742014885,-0.023132981732488,-0.031271826475859) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.179179444909096,0.071640022099018,0.034709356725216,-0.109267458319664,0.303300380706787,0.166529670357704,-0.157689526677132,-0.046522937715054,0.097418382763863,0.052691955119371,-0.039452716708183,-0.006318135187030,-0.288270175457001,0.182915240526199,-0.094985321164131,0.042134668678045) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.031395148485899,-0.134749457240105,0.066640011966228,-0.095796450972557,-0.118659391999245,-0.041372112929821,0.000100967474282,-0.022492390125990,0.049794785678387,0.114145651459694,-0.104908592998981,0.003753953147680,0.173773452639580,0.141973301768303,-0.038895927369595,0.159481018781662) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.149043291807175,-0.014795519411564,0.047077555209398,-0.044204216450453,0.094253562390804,0.043985426425934,-0.012684905901551,-0.005084830336273,0.163861274719238,-0.046120185405016,-0.060628131031990,-0.029774444177747,0.228904992341995,0.194667413830757,-0.041181627660990,0.005869123153389) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.037177190184593,-0.103415615856647,0.133991748094559,0.028986679390073,-0.116513296961784,-0.315685182809830,0.020492091774940,0.185627728700638,0.078463658690453,-0.091456867754459,-0.142654657363892,0.095721766352654,-0.039375580847263,0.086708016693592,-0.083681493997574,-0.015537984669209) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.067115701735020,0.060489896684885,0.124728843569756,-0.139237031340599,-0.082877144217491,-0.255913406610489,-0.055641639977694,-0.269096046686172,0.209043055772781,0.235559612512589,-0.047098666429520,-0.013380262069404,0.232695519924164,-0.037385638803244,-0.124851368367672,0.027860794216394) * MODEL4_texOff(vec2(0,1));
res += mat4(0.026633433997631,-0.050916578620672,-0.168321579694748,-0.001004492049105,0.036266975104809,-0.007627177983522,0.043598033487797,-0.030422803014517,-0.048537991940975,0.091888844966888,-0.021774042397738,-0.022414235398173,0.091726370155811,0.080611482262611,0.041021812707186,0.399760305881500) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.177601128816605,0.043592546135187,-0.061486203223467,0.230932563543320,0.051969509571791,-0.006748449988663,0.042183682322502,0.122843362390995,-0.119222998619080,-0.001025956822559,-0.008392701856792,0.161461293697357,0.058091439306736,-0.006663213949651,-0.047531977295876,-0.056302711367607) * MODEL4_texOff(vec2(1,0));
res += mat4(0.026596803218126,0.050135992467403,0.039040680974722,-0.153531208634377,-0.043320383876562,0.108381338417530,0.013913012109697,0.000989071675576,-0.126314193010330,-0.150151461362839,-0.004071843810380,0.026923829689622,0.119046263396740,-0.114156447350979,-0.072491720318794,-0.033203579485416) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.008138179779053,-0.030945653095841,-0.029215719550848,-0.036117080599070,-0.087474703788757,0.117193549871445,0.054080646485090,0.198172301054001,-0.002143810736015,0.172104865312576,0.055896427482367,-0.121936522424221,-0.045781996101141,0.122396424412727,-0.143947184085846,0.084400288760662) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.057796556502581,-0.079487860202789,-0.008359936997294,-0.019457273185253,-0.305302828550339,-0.295577764511108,0.135361790657043,-0.081441164016724,-0.127687752246857,-0.041089173406363,0.085257902741432,-0.087503217160702,-0.010278172791004,-0.119549773633480,-0.047164283692837,0.005086860153824) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.033690292388201,-0.057440299540758,-0.052877511829138,-0.085822381079197,-0.037439350038767,-0.075799651443958,0.089755825698376,-0.095104083418846,-0.040795367211103,-0.089515559375286,0.086833469569683,-0.038223847746849,0.142447873950005,-0.127753525972366,-0.024299323558807,-0.162884414196014) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.013764183968306,-0.160956695675850,-0.097656466066837,0.030651919543743,0.161050543189049,0.129594549536705,0.054537028074265,0.152567431330681,0.019249128177762,-0.019289741292596,0.079623453319073,0.093901127576828,-0.184281781315804,0.013669731095433,-0.165994673967361,0.109487131237984) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.219664543867111,0.147330433130264,-0.179716601967812,-0.017347112298012,0.068563178181648,-0.033542782068253,-0.098472140729427,0.033866204321384,-0.035840723663568,-0.309149563312531,0.055391672998667,-0.231450393795967,0.119365826249123,0.029344763606787,0.200209364295006,-0.093719325959682) * MODEL5_texOff(vec2(0,0));
res += mat4(0.139902412891388,-0.010899080894887,-0.093413881957531,-0.030441746115685,0.146457016468048,-0.049277000129223,0.050202157348394,-0.337666958570480,0.020853903144598,-0.112218938767910,-0.002940178150311,-0.213651359081268,0.034199446439743,-0.109493963420391,-0.110451266169548,-0.081360571086407) * MODEL5_texOff(vec2(0,1));
res += mat4(0.017518984153867,-0.034549493342638,-0.035759333521128,-0.092981308698654,0.144154101610184,0.062916569411755,0.017968265339732,0.058021541684866,-0.091614946722984,-0.078478343784809,0.114862859249115,0.090997807681561,0.090043194591999,0.034322764724493,-0.013004504144192,0.062398020178080) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.151604443788528,-0.172734260559082,-0.105256065726280,-0.073114387691021,0.120683006942272,0.137082725763321,-0.012096752412617,-0.009998039342463,-0.158094391226768,-0.024061275646091,0.033622488379478,-0.320084452629089,-0.055980563163757,-0.105251163244247,0.180982261896133,-0.010216554626822) * MODEL5_texOff(vec2(1,0));
res += mat4(0.033958837389946,-0.032594367861748,-0.059974804520607,-0.026335962116718,0.055193357169628,-0.003979348577559,0.018686685711145,0.047193307429552,0.015514243394136,0.016180565580726,-0.040853522717953,-0.221378371119499,-0.040275175124407,0.076889559626579,0.051273640245199,-0.035282209515572) * MODEL5_texOff(vec2(1,1));
res += mat4(0.017736308276653,-0.000555071688723,0.006694849114865,-0.070875898003578,-0.114472895860672,0.075576037168503,0.000592457305174,0.149872601032257,-0.109555527567863,-0.081476442515850,-0.082209914922714,-0.003140246262774,-0.259656906127930,-0.108941070735455,0.095511749386787,0.073440648615360) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.209636881947517,0.182197809219360,0.144852787256241,-0.081018373370171,-0.017868168652058,0.014082251116633,0.032883867621422,0.090149953961372,0.299755573272705,0.248235121369362,-0.482813656330109,0.050426512956619,0.034664139151573,-0.061226125806570,0.008457326330245,0.184287577867508) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.030673678964376,0.042135149240494,0.013727963902056,0.016655787825584,-0.096953220665455,-0.115391187369823,0.040054686367512,0.003679792629555,-0.080408133566380,-0.112427279353142,-0.057028710842133,-0.086786702275276,0.006680479738861,-0.022647593170404,-0.040459193289280,0.086613938212395) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.143388450145721,0.074708029627800,0.021123245358467,0.033047970384359,-0.060678821057081,-0.079655990004539,0.021392807364464,0.193559482693672,-0.117990233004093,-0.055468782782555,-0.092056721448898,0.043943785130978,0.083271749317646,-0.145151823759079,0.068627417087555,-0.307641357183456) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.354477554559708,0.241202920675278,0.064266733825207,0.076535873115063,-0.191604092717171,-0.213110342621803,0.597951948642731,0.164388656616211,-0.038466505706310,0.163686588406563,0.444995403289795,0.133170962333679,0.265833288431168,0.053236775100231,-0.033829469233751,0.393313318490982) * MODEL6_texOff(vec2(0,0));
res += mat4(0.054696138948202,0.058500781655312,0.099953942000866,0.188823223114014,-0.016743928194046,0.038834907114506,-0.157316535711288,-0.277622997760773,0.040593281388283,-0.307540059089661,-0.110484994947910,-0.304659157991409,0.020967137068510,0.024043094366789,-0.094093523919582,-0.067899323999882) * MODEL6_texOff(vec2(0,1));
res += mat4(0.207254514098167,0.047422219067812,-0.028813745826483,-0.145372912287712,-0.082416675984859,-0.097966380417347,-0.031270738691092,0.036439154297113,0.035280320793390,0.018341520801187,0.065645247697830,0.026973241940141,-0.073141731321812,0.045202534645796,0.066158592700958,-0.075127057731152) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.336462885141373,0.199296802282333,0.018483966588974,0.019159542396665,0.126991420984268,0.006621045060456,0.006450908724219,0.021392911672592,-0.004513546824455,-0.207759395241737,-0.138002753257751,-0.072829887270927,0.098348684608936,-0.050864882767200,0.111259184777737,0.186632573604584) * MODEL6_texOff(vec2(1,0));
res += mat4(0.185819298028946,0.140899732708931,0.014035361818969,0.274156540632248,0.015872340649366,0.016853986307979,-0.044472046196461,-0.173356384038925,0.023916684091091,0.135200545191765,-0.065240047872066,-0.016471596434712,-0.030237406492233,0.045228350907564,-0.014558158814907,0.063101172447205) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.169197365641594,-0.155622899532318,0.779813766479492,0.025250855833292) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_4x_Photo] mapping 6_2

vec4 hook()
{
vec4 res = vec4(0.240885436534882,-0.036299012601376,0.001993884565309,0.037540551275015);
res += mat4(0.129997879266739,0.002280941233039,-0.099921196699142,-0.032696925103664,0.079075589776039,0.027823410928249,-0.033146765083075,-0.041123192757368,-0.064975380897522,0.030577089637518,-0.281570047140121,-0.025000216439366,-0.120024353265762,0.002061003819108,-0.261777549982071,-0.007760576438159) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.127118259668350,0.004327324684709,-0.026600927114487,-0.080105088651180,0.126112192869186,0.034097418189049,0.210548073053360,-0.060829650610685,0.083018928766251,-0.012942837551236,-0.230184838175774,0.068332880735397,-0.066113971173763,0.039682056754827,-0.143440112471581,0.114003628492355) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.083813622593880,0.161193296313286,-0.078959673643112,0.043195385485888,-0.139819130301476,-0.027162780985236,-0.076155304908752,-0.023167604580522,0.062159404158592,0.073429293930531,0.125202581286430,-0.041330408304930,-0.132683932781219,0.023943603038788,-0.183972045779228,-0.006151028908789) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.051024831831455,0.053273275494576,-0.009258653037250,0.116101719439030,-0.019120544195175,0.166074395179749,0.094812646508217,0.197882369160652,-0.173495128750801,-0.132290706038475,-0.602217435836792,-0.100523218512535,-0.117466188967228,-0.125771075487137,0.007687295787036,0.111855246126652) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.178770422935486,-0.189387440681458,-0.153244629502296,-0.230488136410713,0.121226347982883,-0.074625641107559,-0.003241074504331,-0.233834579586983,-0.482205897569656,-0.079600222408772,-0.184175685048103,0.050400394946337,0.007224998436868,0.026364563032985,0.032615046948195,0.060875650495291) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.089622505009174,0.466152489185333,0.057564072310925,-0.121289424598217,-0.068018540740013,0.439443975687027,-0.117056205868721,0.050567779690027,0.014046964235604,-0.176627218723297,0.152915328741074,-0.050773277878761,-0.303208351135254,0.159642979502678,-0.143291190266609,-0.083320945501328) * MODEL1_texOff(vec2(0,1));
res += mat4(0.097972206771374,-0.000004383568921,0.066298283636570,-0.230677306652069,0.051827076822519,0.022860066965222,0.043515268713236,-0.026311155408621,-0.043245408684015,-0.070329569280148,-0.291818648576736,-0.153459027409554,0.049786608666182,0.015083797276020,-0.041745971888304,-0.032043814659119) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.000418772513513,0.023406838998199,-0.097146518528461,0.073083698749542,-0.116617947816849,0.024674339219928,-0.085734076797962,0.091015994548798,-0.214562430977821,-0.002122588921338,-0.169882491230965,0.118506662547588,-0.006203355733305,-0.009300163015723,-0.039063986390829,-0.020725566893816) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.135582700371742,0.040729608386755,0.078521467745304,-0.054831847548485,-0.003337052650750,-0.114866010844707,0.100563131272793,0.033651556819677,0.071554169058800,-0.187781497836113,0.188641369342804,-0.090871892869473,-0.049851913005114,0.039717148989439,0.028957119211555,-0.027678724378347) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.151972815394402,-0.075654216110706,0.392497181892395,-0.253341495990753,0.164043560624123,-0.131141617894173,0.025951702147722,-0.083629049360752,0.012693990953267,-0.025958279147744,-0.179150655865669,0.075057432055473,0.037981305271387,0.089549846947193,0.055102396756411,-0.037153165787458) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.093556150794029,0.124808773398399,0.044381041079760,-0.199464872479439,0.156736806035042,-0.306201636791229,0.045409306883812,0.024616444483399,0.125320255756378,-0.134400084614754,-0.224075585603714,0.214177116751671,-0.045866064727306,-0.001167755224742,-0.335833549499512,0.132941007614136) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.089414857327938,0.096434429287910,-0.075375080108643,0.125775754451752,-0.021646838635206,-0.159255981445313,0.025240002200007,-0.089493088424206,0.109949380159378,-0.066447138786316,0.180123135447502,-0.110053412616253,0.120466820895672,0.062057211995125,0.301109641790390,-0.039173483848572) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.033681593835354,0.125746905803680,0.019428730010986,0.212737858295441,0.187572374939919,-0.123086929321289,0.086459934711456,-0.076489210128784,0.169122502207756,-0.006979147437960,-0.145857617259026,0.012087935581803,0.195856049656868,0.052184585481882,0.076418973505497,-0.011098241433501) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.010734610259533,-0.026503631845117,0.427660793066025,-0.309660196304321,0.227693036198616,-0.042492799460888,0.100896991789341,-0.140267536044121,-0.000831610290334,-0.078788407146931,-0.118085831403732,-0.229862675070763,0.306645482778549,0.000678790500388,-0.079923778772354,0.047574032098055) * MODEL2_texOff(vec2(0,0));
res += mat4(0.090732105076313,0.019797764718533,-0.256606161594391,-0.135623186826706,-0.021763660013676,0.101674847304821,0.063505925238132,-0.060820348560810,0.107818804681301,-0.129216864705086,0.101254567503929,0.032250069081783,-0.064240939915180,0.352529942989349,0.104786165058613,0.115997970104218) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.045752115547657,0.012224692851305,-0.035896189510822,0.113615617156029,0.068226218223572,-0.115738704800606,0.003426485927776,-0.016564605757594,-0.022435544058681,0.040103852748871,-0.080667428672314,-0.038325712084770,0.002737987553701,0.019798774272203,0.138934627175331,0.172215834259987) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.255146831274033,0.038720011711121,0.080143086612225,-0.080364935100079,0.121173225343227,-0.011194112710655,0.033835511654615,-0.017129916697741,0.073754817247391,0.034061882644892,-0.000520573405083,0.122291378676891,0.063220836222172,-0.056572772562504,-0.030227756127715,-0.128093972802162) * MODEL2_texOff(vec2(1,0));
res += mat4(0.068499691784382,-0.074079670011997,-0.085451260209084,-0.025287481024861,0.093519821763039,0.046401444822550,0.041751600801945,-0.102506920695305,-0.048066779971123,-0.106803618371487,0.177591174840927,0.113571941852570,-0.065121538937092,0.282160878181458,0.063886798918247,-0.150429174304008) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.146237313747406,-0.057076655328274,0.075298391282558,-0.028231004253030,0.036463003605604,-0.030126443132758,0.141525611281395,-0.078121528029442,0.038240294903517,-0.004987596068531,0.120821185410023,-0.061322901397943,0.118878357112408,-0.003942695446312,0.231721580028534,-0.114499628543854) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.625415027141571,-0.075131423771381,-0.102813549339771,0.041546870023012,-0.003945264965296,0.039380691945553,0.189204275608063,0.041363868862391,0.076352857053280,-0.131558209657669,0.272569119930267,-0.155657082796097,0.074658371508121,0.085886217653751,-0.165762379765511,0.101641535758972) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.189553454518318,-0.225208878517151,-0.017717158421874,-0.010036921128631,-0.060967691242695,0.007613513153046,-0.072422057390213,-0.002561276545748,0.005412595812231,-0.275737822055817,-0.103676252067089,0.160653635859489,-0.071642659604549,0.032313890755177,0.111232295632362,-0.013297051191330) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.227270469069481,-0.005599097348750,0.073630258440971,-0.030485194176435,0.187327787280083,0.089407637715340,0.133573219180107,-0.058002833276987,-0.060735039412975,0.016006426885724,-0.025506645441055,-0.096999220550060,-0.203127935528755,0.108071386814117,-0.208629697561264,-0.011791991069913) * MODEL3_texOff(vec2(0,-1));
res += mat4(-1.362261295318604,-0.040375273674726,0.116896592080593,0.391140103340149,-0.091723084449768,-0.111075803637505,0.073546364903450,-0.230479314923286,-0.025905659422278,-0.041661713272333,0.060662589967251,-0.248671546578407,-0.350555747747421,-0.163191154599190,0.034367773681879,-0.344903796911240) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.370091825723648,-0.765461385250092,0.067136146128178,0.147823363542557,-0.088967308402061,0.195233657956123,-0.099453419446945,0.214782640337944,-0.070762030780315,-0.068276025354862,-0.141694262623787,0.102942898869514,-0.033116590231657,-0.040126964449883,0.098080590367317,0.011073390953243) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.006634695921093,-0.019860517233610,-0.039458457380533,-0.091285802423954,0.211726009845734,0.079026527702808,-0.047168143093586,0.105433888733387,-0.136224627494812,0.016940940171480,-0.036466084420681,0.189176812767982,-0.017259685322642,0.063364803791046,0.028942527249455,-0.042192786931992) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.080778807401657,-0.026484280824661,0.049193039536476,-0.179204180836678,0.193901121616364,-0.151437446475029,-0.048909410834312,-0.534507393836975,0.011294471099973,0.056801158934832,-0.050494339317083,-0.091797024011612,-0.079943194985390,0.101140096783638,-0.101559177041054,-0.043450500816107) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.079607404768467,-0.198415085673332,-0.060214735567570,0.055704656988382,-0.113856315612793,0.365596383810043,-0.280357569456100,-0.102350004017353,-0.079572416841984,0.141775071620941,0.026613455265760,0.040693566203117,-0.037934027612209,-0.059119820594788,-0.093615651130676,-0.107114113867283) * MODEL3_texOff(vec2(1,1));
res += mat4(0.080315627157688,0.092947788536549,0.171274900436401,0.175445318222046,-0.043703820556402,-0.078985020518303,0.033044505864382,0.063528843224049,-0.070806592702866,0.087590456008911,0.021223159506917,0.095140501856804,-0.013014324940741,-0.033374503254890,-0.045682113617659,-0.082685947418213) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.036801472306252,0.022112013772130,0.018167927861214,-0.006459177471697,-0.072791703045368,0.055696789175272,-0.366362661123276,0.220229923725128,-0.106768824160099,0.251177698373795,-0.070039317011833,-0.140582278370857,-0.128556221723557,0.026473412290215,0.148268207907677,-0.093115136027336) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.013411957770586,-0.007508840877563,-0.055017076432705,0.009247553534806,-0.011667147278786,0.075302042067051,0.138923197984695,0.007253696676344,-0.092584371566772,0.152441844344139,-0.176872149109840,0.117624491453171,0.056439030915499,-0.043831232935190,0.359694033861160,-0.111472912132740) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.066121339797974,0.013974813744426,0.209980100393295,0.133838236331940,0.227608457207680,0.045928113162518,-0.098254002630711,-0.110337316989899,-0.217902496457100,0.031359463930130,-0.221541628241539,0.125047832727432,-0.241740509867668,-0.001090178498998,0.046188894659281,0.062919229269028) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.169793829321861,-0.131553098559380,-0.188495397567749,0.154108941555023,-0.031758304685354,-0.389480441808701,0.028700318187475,-0.220060631632805,0.119351863861084,0.082870244979858,0.219776839017868,0.082211390137672,-0.009095805697143,0.093128368258476,0.137191325426102,-0.199369549751282) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.003649526508525,0.061313170939684,0.151586532592773,-0.203161567449570,-0.026732202619314,0.031109608709812,-0.151273369789124,0.114587098360062,-0.346586912870407,0.412645459175110,-0.151914581656456,0.007082723081112,0.219579145312309,-0.205627977848053,0.152905642986298,0.090776212513447) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.062990292906761,-0.106503173708916,0.036444947123528,-0.055639814585447,0.034986928105354,0.042405541986227,-0.038622461259365,0.086320340633392,-0.006512368097901,0.053062230348587,0.040013946592808,0.171041816473007,-0.252858310937881,-0.005861350800842,0.098016858100891,0.330849617719650) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.023188903927803,0.173153251409531,0.004218495450914,0.235760867595673,0.080091789364815,0.031780768185854,0.177864149212837,-0.149383842945099,-0.038320735096931,0.069754295051098,0.262023538351059,0.296634584665298,0.165569409728050,0.094633929431438,0.107293471693993,-0.211552694439888) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.048728469759226,0.136894121766090,-0.025960240513086,0.093995407223701,0.033784221857786,0.088663429021835,-0.082878924906254,0.002522406633943,0.034384500235319,-0.004335482139140,0.050621472299099,-0.016955073922873,0.177287653088570,-0.238833263516426,-0.129544645547867,0.130139157176018) * MODEL4_texOff(vec2(1,1));
res += mat4(0.059253767132759,0.016553238034248,-0.044835083186626,0.041656762361526,0.241759389638901,0.059032186865807,-0.192867085337639,0.121553927659988,-0.094372689723969,-0.122220411896706,-0.204523935914040,-0.089598037302494,0.125064104795456,0.117407359182835,-0.119607016444206,-0.030870120972395) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.087263815104961,-0.126761227846146,-0.201201155781746,-0.020512105897069,0.023352319374681,0.050095252692699,0.270289212465286,-0.129465192556381,0.051564469933510,-0.080469578504562,0.210682645440102,-0.212133333086967,0.002149559091777,0.082847498357296,0.238168403506279,-0.068217672407627) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.031805597245693,-0.068961791694164,0.064854480326176,0.106477320194244,0.144339442253113,-0.088868446648121,-0.356940329074860,0.018453558906913,0.022513341158628,-0.091628596186638,-0.109576217830181,0.101711913943291,0.003769702976570,0.050176750868559,-0.124625384807587,0.017686290666461) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.054836552590132,-0.059844378381968,-0.111361652612686,0.068995080888271,-0.021622952073812,-0.014662219211459,-0.016855649650097,0.106654576957226,-0.183028891682625,-0.021165549755096,-0.030842887237668,0.174157157540321,0.049304019659758,0.158913344144821,0.001326391240582,0.102890677750111) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.178729176521301,0.141650617122650,0.047569874674082,0.198384910821915,0.029099801555276,0.083861142396927,0.170501440763474,0.073343038558960,0.223498523235321,-0.602591812610626,-0.006596507970244,0.003270592307672,-0.101390689611435,0.336416929960251,0.012953467667103,-0.079792246222496) * MODEL5_texOff(vec2(0,0));
res += mat4(0.003051761304960,0.159285023808479,0.128199547529221,0.040119685232639,-0.014246589504182,-0.075082056224346,0.188856333494186,-0.038795091211796,0.146486729383469,-0.118332795798779,-0.175750181078911,-0.140928477048874,0.138001769781113,-0.108315706253052,-0.160176634788513,0.057670295238495) * MODEL5_texOff(vec2(0,1));
res += mat4(0.316247820854187,-0.025361660867929,-0.048220034688711,0.142119541764259,0.040034867823124,-0.017472730949521,-0.014172887429595,-0.104098036885262,0.250437825918198,-0.128524050116539,0.010517136193812,-0.040159117430449,0.226342201232910,0.081711545586586,-0.105755165219307,-0.397314548492432) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.102434374392033,-0.038360916078091,-0.056366454809904,0.014827767387033,0.170184358954430,0.163562074303627,0.120445102453232,0.114819146692753,0.108569994568825,-0.238805264234543,-0.260694831609726,0.128459438681602,-0.143688172101974,0.035653829574585,0.115298300981522,-0.012957743369043) * MODEL5_texOff(vec2(1,0));
res += mat4(0.030751904472709,-0.092879176139832,0.133826747536659,0.232862442731857,0.015009311027825,0.051701270043850,0.077236182987690,0.106613442301750,0.051601413637400,-0.100987523794174,-0.046342179179192,-0.043464761227369,0.064638286828995,-0.024471594020724,-0.052608672529459,-0.071385711431503) * MODEL5_texOff(vec2(1,1));
res += mat4(0.074988789856434,-0.075016185641289,0.109516456723213,0.144097730517387,0.068708442151546,-0.008309566415846,0.028740901499987,0.010597386397421,-0.121206052601337,-0.052890382707119,-0.054283875972033,-0.083532385528088,0.150506854057312,-0.009722058661282,0.098415166139603,0.017937535420060) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.069401241838932,-0.044010553508997,-0.111844882369041,-0.038492005318403,-0.041020110249519,0.071234747767448,0.015817970037460,0.011473054997623,0.026612181216478,0.112983182072639,-0.543333590030670,0.187954589724541,0.026134572923183,0.038519572466612,0.163265436887741,-0.055870201438665) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.119510412216187,0.159395053982735,-0.045842926949263,0.143351748585701,0.112595692276955,-0.012323307804763,-0.119859099388123,-0.177726820111275,-0.100995942950249,0.091395631432533,0.159633368253708,0.014804797247052,0.048200245946646,0.011180910281837,0.011831597425044,0.241817966103554) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.105301246047020,-0.077263154089451,-0.032201617956161,-0.111154884099960,0.022918250411749,0.013896905817091,0.071852140128613,0.082981273531914,-0.009011890739202,0.054952550679445,-0.046622462570667,-0.080453015863895,0.209615230560303,0.013844604603946,-0.129607275128365,-0.103232488036156) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.147440448403358,-0.160584345459938,0.052675906568766,0.121049530804157,-0.049486305564642,-0.220253780484200,-0.075099565088749,-0.144282862544060,-0.166975542902946,0.165472507476807,0.025091914460063,0.132975399494171,0.131283119320869,0.005811021197587,0.148354306817055,0.263998299837112) * MODEL6_texOff(vec2(0,0));
res += mat4(0.053429130464792,-0.281500279903412,0.006220960523933,-0.029759993776679,-0.023251015692949,-0.093539439141750,-0.013107703998685,0.044462669640779,-0.049628484994173,-0.281978756189346,-0.132062867283821,0.015901815146208,0.077099263668060,0.306005597114563,0.034828919917345,-0.043704144656658) * MODEL6_texOff(vec2(0,1));
res += mat4(0.068802215158939,0.026426710188389,0.141313835978508,-0.046756908297539,-0.024945111945271,0.098172083497047,0.043735004961491,0.032372277230024,0.091202616691589,-0.044401433318853,0.027373835444450,0.187121078372002,0.018303830176592,0.000902554544155,-0.050477255135775,0.109172858297825) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.225260809063911,-0.111338205635548,0.161951512098312,0.169783353805542,-0.036340229213238,0.090430825948715,-0.095046773552895,0.011843056418002,0.057705458253622,-0.094864785671234,0.075275294482708,-0.212944328784943,0.019125146791339,-0.095003761351109,0.071229480206966,0.113250397145748) * MODEL6_texOff(vec2(1,0));
res += mat4(0.037732902914286,-0.195917606353760,0.059270650148392,0.097966253757477,0.130445048213005,-0.056727845221758,-0.077197365462780,-0.031699154525995,-0.048238534480333,0.228854790329933,0.015180098824203,-0.004874194040895,0.103973455727100,0.098060362040997,0.101235657930374,0.031483553349972) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.043747872114182,0.025058371946216,0.031329680234194,-0.180780455470085) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_4x_Photo] mapping 6_3

vec4 hook()
{
vec4 res = vec4(0.049188788980246,-0.114151522517204,-0.021114444360137,-0.037675015628338);
res += mat4(-0.029075661674142,0.022091347724199,0.053816013038158,-0.128223612904549,-0.064296737313271,-0.037601284682751,-0.079343505203724,0.084658749401569,-0.059771724045277,-0.013116016983986,0.016517529264092,0.139463365077972,-0.049623418599367,-0.091416321694851,0.007309662643820,-0.057598382234573) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.076438732445240,0.147248446941376,0.110603086650372,-0.143477797508240,0.069865524768829,0.089288659393787,0.138649791479111,-0.072574526071548,-0.070278041064739,-0.025588970631361,-0.165270492434502,0.080419853329659,-0.068674281239510,-0.219059914350510,-0.116815447807312,-0.186439767479897) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.009618436917663,0.071113385260105,0.116830199956894,-0.055082388222218,0.156058296561241,-0.149654254317284,0.011286429129541,0.133836075663567,-0.038040317595005,0.011454015970230,-0.335968822240829,-0.050929155200720,0.010959597304463,-0.197703018784523,0.048065770417452,0.121184669435024) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.113774985074997,0.147604078054428,0.146909639239311,-0.077232442796230,-0.091906726360321,0.064909867942333,0.100058190524578,-0.042293325066566,0.002672358416021,-0.104050353169441,-0.032370451837778,0.011799121275544,-0.133159190416336,-0.064682230353355,-0.130473420023918,0.024057148024440) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.017151797190309,0.106475733220577,-0.131946802139282,-0.158647105097771,0.071826793253422,0.121376223862171,-0.183693751692772,-0.439533621072769,-0.026541473343968,-0.200995340943336,0.242267176508904,0.117406003177166,-0.004791238345206,-0.081117808818817,-0.017336454242468,0.277381360530853) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.163841083645821,0.136336952447891,0.045748177915812,0.158041223883629,0.156790226697922,-0.075129829347134,0.073435865342617,0.191706776618958,-0.111961148679256,-0.047442141920328,-0.330792129039764,0.057078488171101,-0.084099560976028,-0.125921726226807,-0.015737973153591,0.196999073028564) * MODEL1_texOff(vec2(0,1));
res += mat4(0.140198871493340,0.148295462131500,-0.051041029393673,0.008658924140036,0.041083551943302,0.131721749901772,-0.036182049661875,-0.008928911760449,-0.290695518255234,-0.331401348114014,0.202669098973274,-0.218214750289917,0.000982615048997,-0.010372717864811,-0.121056757867336,-0.064293846487999) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.223504230380058,0.443005234003067,-0.070751532912254,-0.245023787021637,-0.131713569164276,0.424372553825378,-0.047823917120695,-0.033065989613533,-0.456674039363861,-0.602364301681519,0.168963044881821,0.132144242525101,-0.055295981466770,-0.069204136729240,-0.042066447436810,-0.234548017382622) * MODEL1_texOff(vec2(1,0));
res += mat4(0.075955830514431,-0.048378337174654,-0.056842990219593,-0.020015418529510,0.024973494932055,0.061215069144964,-0.070177763700485,-0.020587163046002,-0.254932075738907,-0.138206034898758,-0.169715091586113,0.105643972754478,0.069576323032379,-0.123664975166321,-0.066187471151352,-0.051857955753803) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.080950625240803,0.104080490767956,-0.060881033539772,-0.067134320735931,0.043084815144539,-0.239046975970268,0.073988363146782,0.193021431565285,-0.131499826908112,-0.061658304184675,-0.027031717821956,-0.132949754595757,0.084845967590809,0.056994482874870,-0.093757607042789,-0.046758476644754) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.104260347783566,0.168231770396233,0.315486103296280,-0.121482752263546,-0.099751345813274,-0.184514984488487,-0.039598569273949,0.127426326274872,-0.046645637601614,-0.064091905951500,0.102017849683762,-0.038749951869249,-0.436004966497421,0.051978342235088,-0.057787325233221,0.040942333638668) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.042844638228416,0.151497185230255,0.021322809159756,-0.192518204450607,-0.104634769260883,-0.100501462817192,-0.042409345507622,0.047778867185116,0.091307669878006,-0.216148301959038,0.050073459744453,-0.074654221534729,-0.008072034455836,0.008811264298856,0.211002826690674,-0.039175596088171) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.096352830529213,0.097408398985863,-0.064798034727573,0.234139427542686,-0.009788044728339,-0.225762590765953,-0.091440156102180,0.024452473968267,-0.026305899024010,-0.089000396430492,0.032119907438755,0.061426363885403,0.092694185674191,0.027402158826590,0.040891837328672,-0.120912551879883) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.069224245846272,0.133357271552086,0.041934780776501,0.030180038884282,0.032355394214392,-0.171428084373474,-0.127776831388474,-0.276428639888763,-0.450981259346008,-0.041461601853371,0.218155235052109,-0.036341175436974,0.257268875837326,0.071970537304878,-0.212665006518364,-0.407223224639893) * MODEL2_texOff(vec2(0,0));
res += mat4(0.097500309348106,-0.023476082831621,0.109515786170959,-0.038712967187166,0.088694229722023,-0.138110846281052,0.018498312681913,0.028958138078451,-0.123648256063461,-0.086373664438725,0.277370274066925,0.078118883073330,0.182287842035294,-0.034425232559443,0.100328527390957,-0.136531427502632) * MODEL2_texOff(vec2(0,1));
res += mat4(0.106733113527298,0.021602565422654,-0.297282457351685,-0.076806403696537,-0.043685026466846,-0.078968904912472,-0.045515418052673,0.219531342387199,0.085039883852005,-0.095366291701794,0.020325941964984,-0.024887392297387,0.119778975844383,-0.157235845923424,0.073958538472652,0.060594793409109) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.303007662296295,0.068303897976875,-0.150372743606567,-0.147013619542122,-0.104830689728260,-0.064945988357067,0.099335417151451,0.144598856568336,-0.001627456862479,0.159728124737740,-0.158059701323509,-0.168347984552383,-0.041286449879408,-0.008613248355687,-0.160029724240303,-0.003692545229569) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.041540469974279,0.034300871193409,0.007582635153085,0.011907194741070,0.010504953563213,-0.142690405249596,0.075033664703369,0.061796184629202,-0.059916768223047,-0.022484112530947,-0.062990650534630,-0.143548026680946,0.046098120510578,0.024053549394011,-0.067201152443886,0.050255551934242) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.046764191240072,-0.002070811577141,0.045990925282240,-0.027246339246631,0.033139415085316,-0.093220658600330,-0.175153821706772,-0.011840860359371,0.108509331941605,-0.089159384369850,-0.033429343253374,-0.063724182546139,0.029616588726640,0.020542034879327,0.133788838982582,0.172264277935028) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.027257602661848,-0.032871175557375,-0.251974344253540,0.069561339914799,-0.024657510221004,-0.099489517509937,0.455568701028824,0.103025786578655,-0.100926965475082,0.019766526296735,0.012860788032413,0.100817129015923,0.037849709391594,0.075479410588741,-0.050139233469963,-0.069280743598938) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.001242084079422,-0.046023353934288,-0.095649667084217,0.107088461518288,0.029242031276226,-0.070765525102615,-0.072294592857361,0.085381992161274,0.058145277202129,-0.117086790502071,-0.111076131463051,-0.020358461886644,0.041215486824512,-0.016779629513621,0.064465001225471,0.099788315594196) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.016686435788870,-0.031018001958728,-0.053147409111261,-0.032579533755779,-0.127361819148064,-0.169025823473930,-0.136960253119469,-0.068375982344151,-0.160635828971863,0.141794025897980,-0.157678931951523,0.026726629585028,0.117577001452446,0.153370141983032,0.218629479408264,0.030015897005796) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.141764834523201,0.078455105423927,-0.050499632954597,-0.021457096561790,0.176551163196564,-0.022540930658579,0.210172936320305,0.124016895890236,-0.082408897578716,-0.231583774089813,-0.168356999754906,0.231022253632545,0.258295714855194,0.104894638061523,0.066150173544884,-0.102174863219261) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.215448856353760,-0.152983129024506,0.148495480418205,0.114909633994102,-0.045119632035494,-0.075703322887421,-0.008981610648334,0.015437819994986,-0.125827059149742,-0.057852033525705,-0.198032349348068,-0.110455155372620,-0.003896482056007,-0.049770265817642,0.017263157293200,0.036670319736004) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.064506612718105,-0.073499187827110,0.021655524149537,-0.034425552934408,0.002391033107415,-0.176634967327118,-0.207915350794792,0.181472793221474,0.090252973139286,-0.021308541297913,-0.037170175462961,-0.120934560894966,-0.099522046744823,0.009483308531344,0.123667612671852,-0.103663325309753) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.108619727194309,-0.187515899538994,-0.172426566481590,-0.219983622431755,0.204786866903305,-0.352267295122147,-0.055904548615217,0.391842752695084,-0.181936413049698,0.052584219723940,0.172022119164467,0.022897571325302,-0.061744414269924,-0.061969645321369,-0.059065949171782,-0.114874459803104) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.032787051051855,0.021924413740635,0.242231130599976,-0.234817907214165,0.150193095207214,-0.008114779368043,-0.056620344519615,0.132412299513817,0.080100081861019,-0.045455664396286,-0.200426995754242,0.038477543741465,-0.096464201807976,-0.141259849071503,0.098055496811867,0.013423870317638) * MODEL3_texOff(vec2(1,1));
res += mat4(0.096369683742523,-0.053710032254457,0.087155148386955,-0.014544229023159,0.050477314740419,0.049729950726032,0.040183328092098,-0.099823355674744,-0.057150632143021,0.055311307311058,-0.077074781060219,0.105702415108681,-0.068540371954441,-0.012751769274473,-0.051178555935621,0.054282721132040) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.142256319522858,0.027475522831082,-0.230008259415627,0.171457707881927,-0.038351505994797,0.045934598892927,-0.000655872980133,-0.072206847369671,0.100592024624348,0.117686502635479,0.049785822629929,-0.053270548582077,0.040768723934889,-0.085223361849785,-0.036611214280128,0.137847691774368) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.063440740108490,-0.102031573653221,0.036899972707033,-0.032568909227848,0.145118162035942,0.013374648988247,-0.009019002318382,0.007658488117158,0.077989347279072,0.042756218463182,0.093603469431400,-0.092058032751083,-0.048202112317085,-0.025780316442251,-0.160501465201378,-0.015936439856887) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.173038989305496,-0.000795373693109,0.007428406272084,-0.136873126029968,0.084149911999702,0.095797978341579,0.112936466932297,0.066415272653103,-0.026198057457805,-0.076978877186775,-0.025737512856722,0.054911579936743,0.111923485994339,-0.005562077276409,-0.238004833459854,0.063836216926575) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.171549350023270,-0.026838414371014,-0.307283967733383,-0.073802873492241,-0.026910122483969,0.087408624589443,-0.249387055635452,-0.145062580704689,0.184657573699951,-0.084098339080811,0.086055837571621,0.168012604117393,0.057101938873529,0.116424314677715,0.142257034778595,0.056530799716711) * MODEL4_texOff(vec2(0,0));
res += mat4(0.179249748587608,-0.015787905082107,0.117666214704514,0.098753973841667,0.044474512338638,0.140157222747803,-0.038373481482267,-0.001257714233361,-0.038280282169580,0.032012309879065,0.245212689042091,0.159898921847343,-0.013936170376837,0.008972018957138,-0.294014990329742,-0.089617304503918) * MODEL4_texOff(vec2(0,1));
res += mat4(0.036707434803247,0.098638266324997,-0.107589833438396,0.248078837990761,-0.051081247627735,0.056090496480465,-0.049900945276022,0.006942295003682,0.014319348149002,0.171718686819077,-0.097700238227844,-0.068808391690254,0.051639642566442,-0.056484527885914,-0.155952513217926,-0.174955412745476) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.235633403062820,0.246883660554886,-0.202180504798889,0.017143854871392,-0.084422186017036,0.105826720595360,-0.077223181724548,0.105503343045712,-0.110628649592400,0.395912438631058,0.182227745652199,0.191822558641434,0.034970853477716,-0.009558742865920,-0.237710624933243,0.103441342711449) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.019437078386545,0.016482464969158,0.087887085974216,-0.047671575099230,0.130809545516968,-0.037468362599611,-0.141714975237846,-0.069293424487114,-0.049293957650661,-0.184876963496208,-0.042299140244722,0.050573796033859,0.037864696234465,0.043582502752542,-0.313218623399734,-0.152714088559151) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.006999865174294,0.104800619184971,-0.206818416714668,0.332486391067505,-0.173874437808990,0.096093289554119,-0.012153477407992,-0.105964712798595,0.115623086690903,0.015532680787146,-0.081357158720493,-0.055073887109756,-0.027423676103354,-0.035048324614763,-0.017664637416601,0.050929617136717) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.044248096644878,0.095552913844585,0.072829909622669,0.045303732156754,0.051708366721869,0.155867651104927,0.403491556644440,-0.015482596121728,-0.041521232575178,0.072347678244114,0.086582265794277,0.175569027662277,0.054639406502247,-0.105087049305439,-0.004005327820778,0.003544152015820) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.070603221654892,0.041633065789938,-0.074358507990837,-0.017187090590596,0.048128984868526,0.153172999620438,-0.278199791908264,-0.127650305628777,-0.090665109455585,0.039216179400682,-0.087674938142300,0.030801823362708,0.049416884779930,-0.111415535211563,-0.060801010578871,0.019915448501706) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.083103314042091,0.038922630250454,-0.188805222511292,-0.150390312075615,0.161727085709572,0.007058553397655,0.004030409269035,0.175987675786018,-0.161910101771355,-0.138244643807411,0.124524652957916,-0.149601906538010,0.187981352210045,0.126868590712547,0.304229259490967,-0.054301615804434) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.269054681062698,0.058621875941753,-0.008918176405132,-0.087814420461655,0.195784389972687,0.003353691892698,0.122450761497021,0.117530725896358,0.125021934509277,-0.175794303417206,0.119329236447811,-0.016466775909066,0.117186516523361,0.119835339486599,0.049977339804173,-0.000106549239717) * MODEL5_texOff(vec2(0,0));
res += mat4(0.090570412576199,0.053753711283207,-0.052994560450315,0.191330581903458,0.091731801629066,0.097619660198689,-0.108635976910591,0.027885803952813,0.033834438771009,-0.118406616151333,-0.114725627005100,-0.091464303433895,0.031669769436121,0.132311657071114,0.009701685048640,0.020923089236021) * MODEL5_texOff(vec2(0,1));
res += mat4(0.014815268106759,-0.025223927572370,-0.034511219710112,0.032293159514666,0.024050612002611,0.029101291671395,0.001371962134726,-0.056036256253719,-0.017494633793831,-0.042895529419184,-0.183862492442131,-0.172377333045006,-0.085050269961357,0.182021796703339,-0.143764764070511,0.002631409792230) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.284555554389954,0.039301447570324,-0.062471788376570,-0.046821955591440,-0.070032082498074,-0.102478399872780,0.193731367588043,-0.073993280529976,-0.018444353714585,0.003767648944631,0.135962009429932,-0.232438519597054,-0.058537695556879,-0.257959753274918,-0.202386960387230,-0.105904616415501) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.149886384606361,0.048514515161514,-0.203874140977859,-0.063323974609375,0.041073728352785,-0.015571515075862,-0.107799261808395,-0.091446645557880,0.053346708416939,-0.006718819495291,0.012054711580276,-0.199704274535179,0.020083503797650,0.198826685547829,-0.126927673816681,-0.075979031622410) * MODEL5_texOff(vec2(1,1));
res += mat4(0.090366855263710,0.059577915817499,0.191084474325180,-0.005186286754906,0.132829397916794,-0.025618400424719,0.142992287874222,-0.070101633667946,-0.105059966444969,0.015380439348519,-0.050468973815441,-0.064703762531281,-0.000626764609478,0.044395107775927,0.341357320547104,0.074233427643776) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.154766857624054,-0.037350095808506,-0.085802920162678,0.100969001650810,-0.217940211296082,0.085951231420040,0.248545572161674,-0.133361384272575,-0.511230289936066,0.081569194793701,-0.192026928067207,-0.233413130044937,-0.001263168989681,0.036096587777138,-0.081889271736145,0.139370575547218) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.106449171900749,0.040493696928024,0.040968656539917,-0.098499625921249,0.083964608609676,0.148267939686775,0.134755581617355,-0.088036090135574,-0.139776289463043,0.039078753441572,-0.052175860852003,-0.162352234125137,0.055213470011950,-0.018199106678367,0.161008283495903,-0.109096422791481) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.074441827833652,0.067704103887081,0.066205352544785,0.059983834624290,0.026036789640784,0.010380515828729,-0.053517404943705,0.027780445292592,0.032366640865803,0.148192688822746,-0.046758275479078,0.052084241062403,-0.197739392518997,0.090169079601765,0.041447214782238,0.180262982845306) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.075022980570793,0.030235154554248,0.120614521205425,0.272352278232574,-0.027633892372251,0.063796408474445,-0.227894991636276,0.098382771015167,0.183263972401619,0.236743673682213,0.018337329849601,0.040214393287897,0.141840472817421,0.060267079621553,-0.282641023397446,-0.132742673158646) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.026390129700303,-0.002700594952330,0.087835304439068,0.166046947240829,0.111961200833321,0.177518010139465,0.016890283674002,-0.155067160725594,-0.050493903458118,0.222652316093445,0.003377850400284,-0.067225433886051,-0.046541415154934,-0.005997519474477,0.008868569508195,0.159935548901558) * MODEL6_texOff(vec2(0,1));
res += mat4(0.029748966917396,-0.031383559107780,-0.015094991773367,-0.131929203867912,0.086479611694813,0.259876161813736,-0.119363270699978,0.070314563810825,0.083168320357800,0.031067397445440,-0.067444741725922,-0.017670139670372,0.013116206042469,0.070495493710041,0.025793839246035,0.059992767870426) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.011709418147802,0.033744014799595,0.186165064573288,0.029730500653386,0.072675332427025,0.009608213789761,-0.114842429757118,0.043960984796286,-0.144522413611412,-0.368942975997925,0.064655341207981,-0.065818056464195,-0.025435894727707,0.001030424609780,0.104663409292698,0.129273086786270) * MODEL6_texOff(vec2(1,0));
res += mat4(0.058016788214445,0.071859978139400,0.084753043949604,0.067053027451038,-0.068156249821186,0.105486296117306,-0.133970573544502,0.024232400581241,0.269858002662659,0.046228226274252,-0.217826157808304,-0.032628282904625,0.095585882663727,-0.128727793693542,-0.016305144876242,0.058809816837311) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.438249915838242,-0.021851483732462,0.275681078433990,-0.042836215347052) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_4x_Photo] mapping 6_4

vec4 hook()
{
vec4 res = vec4(-0.108852379024029,-0.016489859670401,0.016322545707226,0.019471941515803);
res += mat4(-0.011291011236608,0.051986765116453,0.124189205467701,-0.018666189163923,0.085442669689655,0.022915935143828,0.120086818933487,0.046522919088602,-0.049001436680555,0.049637328833342,0.071428813040257,-0.023241167888045,0.008254786953330,0.033584520220757,-0.083250246942043,-0.124434486031532) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.055650804191828,0.066727265715599,-0.007779175415635,-0.043319609016180,-0.035305939614773,0.018154168501496,-0.086064852774143,0.072148628532887,0.022547170519829,0.116942845284939,0.060988560318947,-0.055145956575871,-0.056991830468178,-0.086941935122013,-0.020158704370260,-0.134094461798668) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.143395274877548,-0.044586941599846,-0.019221462309361,0.091703742742538,0.077003926038742,-0.008145957253873,-0.055858701467514,-0.014003565534949,-0.017455445602536,-0.012363469228148,0.034688051789999,-0.063657090067863,0.009705297648907,0.121659241616726,-0.082774855196476,0.031678438186646) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.144647628068924,-0.025975354015827,0.043320044875145,0.309531927108765,0.040626130998135,0.023362345993519,0.190898358821869,0.155479177832603,-0.019000269472599,-0.030479865148664,0.123598583042622,-0.096819274127483,-0.090020217001438,0.091447003185749,-0.022235844284296,0.179809331893921) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.528739869594574,0.084882602095604,0.331179082393646,-0.165964007377625,-0.398896485567093,-0.239558130502701,0.361532658338547,-0.405192494392395,-0.081394866108894,0.188709020614624,-0.083304174244404,0.292831271886826,0.033426605165005,0.134237229824066,0.160495564341545,0.266477912664413) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.071790978312492,-0.103398039937019,0.082353711128235,0.001820381963626,-0.015900563448668,0.031691238284111,0.077136188745499,-0.120526984333992,-0.119952552020550,-0.028500519692898,-0.012444294989109,0.000863347435370,0.071324899792671,-0.057850759476423,-0.165096506476402,-0.334205985069275) * MODEL1_texOff(vec2(0,1));
res += mat4(0.082663625478745,-0.003255723509938,0.182813167572021,-0.010313556529582,-0.040929071605206,0.063030049204826,-0.036741264164448,-0.057093072682619,-0.095830351114273,-0.101113080978394,-0.139103710651398,-0.065562225878239,-0.073928780853748,0.057138476520777,-0.060664627701044,-0.044024690985680) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.070369586348534,-0.340325534343719,0.146544694900513,0.029452068731189,0.169396176934242,-0.223673731088638,0.033539839088917,-0.116076074540615,0.121845267713070,0.482691466808319,-0.154963821172714,0.398572742938995,-0.127823337912560,0.136106312274933,0.083321265876293,-0.096575632691383) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.088960677385330,0.088471174240112,-0.094026021659374,-0.045577630400658,0.034738045185804,-0.029734106734395,-0.102222807705402,0.041297480463982,-0.098246239125729,-0.243355408310890,-0.149609446525574,-0.159239396452904,-0.023399148136377,0.040900234133005,-0.002356264274567,0.004713892471045) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.012187091633677,-0.052147038280964,0.022448761388659,0.368912011384964,0.162180975079536,-0.090703085064888,-0.233248665928841,0.145621404051781,0.036317124962807,0.049726650118828,0.097849175333977,0.002456640824676,0.025053849443793,0.022947309538722,-0.052442245185375,0.097219638526440) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.200391441583633,-0.089152120053768,-0.192569464445114,-0.250422686338425,0.092063531279564,-0.131324738264084,-0.090857528150082,-0.098133072257042,0.067515730857849,0.169082492589951,0.034841910004616,-0.059410281479359,-0.055831804871559,-0.146161511540413,-0.183200895786285,0.021907638758421) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.064633779227734,-0.001905927085318,-0.050808463245630,0.049980681389570,-0.035426218062639,-0.114489898085594,-0.016305223107338,-0.111107170581818,-0.031972058117390,-0.038246154785156,-0.115942962467670,0.027669850736856,-0.012906860560179,-0.003955828957260,-0.275148540735245,-0.113058008253574) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.063036300241947,0.061640169471502,-0.170664697885513,-0.195646718144417,-0.028798818588257,-0.014603347517550,-0.192789956927299,-0.120812453329563,-0.130454331636429,0.088695161044598,0.024848556146026,-0.075221739709377,0.111448161303997,0.150707781314850,0.068484954535961,-0.012666113674641) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.064042501151562,-0.038354564458132,0.082655780017376,0.222571909427643,0.084946006536484,-0.051341485232115,-0.119960330426693,-0.093942880630493,0.173038855195045,-0.010110870935023,-0.015689782798290,0.248160704970360,-0.133456051349640,-0.118145123124123,0.067061230540276,-0.441830933094025) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.063771173357964,-0.080424979329109,-0.036856550723314,-0.175915792584419,-0.031027419492602,0.062304493039846,-0.100245855748653,0.028057064861059,0.017992876470089,0.081506691873074,-0.023738311603665,0.296743333339691,0.030425913631916,0.141106501221657,0.213295459747314,0.206822469830513) * MODEL2_texOff(vec2(0,1));
res += mat4(0.030006472021341,-0.215649172663689,-0.130135834217072,-0.185820072889328,-0.044808596372604,-0.106670521199703,-0.113920256495476,0.013831436634064,0.003083952236921,0.088946461677551,0.051930967718363,0.114122562110424,-0.080402143299580,-0.056876972317696,0.006295772269368,-0.094936162233353) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.024926384910941,-0.163898289203644,0.048198226839304,0.109887801110744,-0.108423553407192,-0.063073448836803,-0.126883774995804,-0.034167438745499,0.166328743100166,-0.081886053085327,0.051014054566622,-0.075821913778782,-0.100446775555611,-0.058957815170288,-0.120441794395447,0.048088446259499) * MODEL2_texOff(vec2(1,0));
res += mat4(0.016720736399293,0.048035681247711,0.146130621433258,0.135818228125572,-0.012055011466146,-0.014133001677692,0.080235481262207,0.053962308913469,-0.119616433978081,-0.030012447386980,-0.010772561654449,0.179185971617699,-0.086633838713169,-0.039601121097803,0.076010905206203,0.067475952208042) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.037982270121574,-0.028806809335947,-0.019745789468288,-0.035471394658089,0.185179024934769,0.041930843144655,0.013794156722724,-0.022052647545934,-0.041528932750225,-0.040013875812292,-0.073993436992168,-0.086066335439682,0.006822282914072,-0.087541066110134,0.024742564186454,-0.002474093576893) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.049608998000622,-0.101214334368706,-0.169683396816254,-0.071883738040924,0.026340264827013,-0.028008854016662,-0.023996876552701,0.122909292578697,0.000668418011628,0.023052897304296,-0.099723301827908,-0.017276957631111,0.129465788602829,0.022044494748116,-0.045715667307377,-0.212748184800148) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.004963717889041,-0.056062832474709,0.004108844790608,0.031421449035406,0.023082323372364,0.019392089918256,-0.033657975494862,0.017022283747792,-0.018077712506056,-0.157242894172668,-0.169606685638428,0.173755317926407,-0.014934145845473,0.003396043088287,-0.090709067881107,0.014910806901753) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.026576781645417,0.009188988246024,-0.054350525140762,-0.009426758624613,-0.035121381282806,-0.122054971754551,-0.016948431730270,-0.098341554403305,0.032837901264429,-0.003278593998402,-0.173204496502876,-0.018406879156828,0.259130626916885,-0.047901041805744,0.070425249636173,0.114889785647392) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.082103461027145,0.133047565817833,-0.033968072384596,0.244426265358925,0.023725196719170,-0.055849995464087,-0.207716092467308,0.304813176393509,-0.341263383626938,-0.244380086660385,0.084744356572628,-0.131124988198280,-0.200788632035255,-0.047205645591021,-0.130468934774399,-0.165585994720459) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.158276408910751,0.038042631000280,-0.225479334592819,0.249841243028641,-0.061468098312616,-0.064851380884647,0.048507507890463,-0.173034414649010,-0.196237400174141,-0.073177926242352,-0.105633631348610,0.086731165647507,0.129391476511955,-0.032059505581856,-0.047200631350279,0.114182636141777) * MODEL3_texOff(vec2(0,1));
res += mat4(0.015636494383216,-0.034357480704784,-0.045272883027792,-0.019984114915133,-0.001797382836230,-0.151868730783463,-0.080869257450104,0.020320121198893,-0.011950762942433,-0.007820245809853,0.111263342201710,-0.173518091440201,0.023602316156030,-0.041001856327057,-0.023957913741469,0.021898675709963) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.042262393981218,0.002954335417598,0.062161620706320,-0.026652337983251,-0.157379075884819,0.039082597941160,-0.057383392006159,-0.046669885516167,-0.168872848153114,0.139909252524376,-0.048191443085670,0.194693878293037,-0.044762272387743,-0.147838339209557,-0.072317816317081,0.025762347504497) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.144608899950981,0.017699269577861,-0.081014819443226,-0.103619553148746,0.062208369374275,-0.124815039336681,-0.071107409894466,-0.040915269404650,-0.139713466167450,-0.001506159431301,0.109127499163151,0.067614801228046,-0.080115959048271,0.008686918765306,-0.175480067729950,0.007263374980539) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.148655235767365,-0.050163701176643,0.010169441811740,0.083555497229099,-0.029493385925889,-0.005451779812574,0.140486732125282,0.114078126847744,0.037632297724485,0.036580093204975,0.033212497830391,-0.101595088839531,0.040989864617586,0.008928230963647,0.142682105302811,0.067244708538055) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.131496205925941,0.082841619849205,-0.085471883416176,0.029823547229171,-0.058705706149340,0.158642172813416,0.134272247552872,-0.098655432462692,-0.064337246119976,0.029543219134212,-0.176013886928558,0.080180697143078,0.062619902193546,0.140955016016960,-0.071230724453926,0.221087783575058) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.000409340544138,-0.020210064947605,-0.007107347249985,-0.005618693772703,-0.143577098846436,0.078204125165939,0.168627008795738,-0.150876700878143,0.113212890923023,-0.007726944051683,0.159706160426140,-0.086739256978035,0.016750687733293,0.161765798926353,-0.010988140478730,0.184888914227486) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.087825730443001,0.089709483087063,-0.086580619215965,0.058199264109135,-0.014416447840631,0.007038231939077,0.206460431218147,-0.110613383352757,-0.038672856986523,-0.012685949914157,0.016794556751847,-0.264515101909637,0.103517852723598,0.000325214001350,0.182752013206482,0.003402457339689) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.139592498540878,0.050239194184542,-0.060480348765850,0.124781459569931,-0.074824422597885,-0.305399179458618,0.135968342423439,-0.276564300060272,-0.110805392265320,0.079465664923191,0.042335055768490,-0.443434536457062,0.107388183474541,0.124777249991894,0.032686203718185,0.305390238761902) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.201755791902542,-0.017651677131653,-0.021129662171006,-0.115275442600250,0.044713560491800,0.046285338699818,0.380070537328720,0.224873244762421,0.211723819375038,0.033977311104536,-0.166499108076096,0.040617167949677,-0.007044379599392,0.186712741851807,0.027185453101993,0.061800092458725) * MODEL4_texOff(vec2(0,1));
res += mat4(0.081294000148773,0.004000306595117,0.085045203566551,-0.172433078289032,0.083561785519123,0.014735943637788,0.129220619797707,-0.104021862149239,-0.054207041859627,-0.011128377169371,-0.060919459909201,-0.029445068910718,0.100662358105183,0.132365331053734,0.235850796103477,0.148199409246445) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.019049251452088,-0.128419011831284,0.120765253901482,-0.149201348423958,0.101906009018421,-0.065689682960510,0.013252826407552,0.112464785575867,-0.078396685421467,-0.094886787235737,0.004727537278086,-0.024028200656176,0.126095682382584,0.191337719559669,-0.060102488845587,0.205589920282364) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.227977454662323,0.125889346003532,0.026359880343080,-0.177877739071846,0.076683707535267,0.065453700721264,0.166155040264130,-0.119081482291222,-0.026938505470753,0.038293056190014,0.161071375012398,0.000557975785341,-0.010535378009081,0.054839499294758,0.107705488801003,0.116077952086926) * MODEL4_texOff(vec2(1,1));
res += mat4(0.091419078409672,0.049160789698362,-0.098331376910210,-0.010362573899329,-0.006776063703001,0.101346544921398,0.225649431347847,-0.278221219778061,0.070281468331814,-0.035962525755167,-0.030579917132854,-0.248704642057419,0.067247338593006,0.052129909396172,-0.027567762881517,-0.087367020547390) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.090268313884735,-0.112726211547852,0.001997717889026,0.269673466682434,-0.112774118781090,0.096603505313396,-0.130402788519859,-0.093901760876179,0.054182145744562,-0.072920285165310,0.126294821500778,0.123397119343281,-0.046358101069927,-0.103842407464981,0.031872164458036,-0.094972729682922) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.096553727984428,0.048407625406981,0.017282146960497,0.014496802352369,-0.092233464121819,0.055152874439955,0.162189081311226,0.086005173623562,-0.124756298959255,0.055526129901409,-0.036362651735544,-0.110047556459904,-0.005737442057580,0.041612591594458,0.030851228162646,0.177842035889626) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.225207448005676,0.182531759142876,-0.205861777067184,-0.097256422042847,-0.051258601248264,-0.046176843345165,0.179783061146736,0.087648995220661,0.026298340409994,-0.051741056144238,-0.168924584984779,0.349838286638260,0.044105734676123,-0.125669389963150,-0.038861557841301,-0.027123626321554) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.256485611200333,0.121640734374523,0.120727524161339,-0.128125101327896,0.325492978096008,0.211898490786552,-0.088732190430164,0.102173112332821,0.080792665481567,0.072242297232151,0.011040473356843,-0.027719268575311,-0.041185788810253,-0.068215154111385,0.043518971651793,0.155765607953072) * MODEL5_texOff(vec2(0,0));
res += mat4(0.090130917727947,0.085017599165440,0.070514656603336,-0.167219266295433,-0.325557500123978,0.048558156937361,0.055844243615866,0.134062200784683,-0.097563929855824,-0.028404003009200,-0.087096780538559,-0.245371103286743,-0.148691251873970,-0.010193858295679,0.065282888710499,0.216035336256027) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.087205655872822,0.063289493322372,0.094868667423725,-0.032467938959599,-0.037481714040041,0.113430775702000,0.084671370685101,0.121333293616772,-0.130503386259079,0.066310897469521,-0.084372654557228,-0.025784833356738,0.124020084738731,-0.046185676008463,-0.028955314308405,0.245863482356071) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.086338542401791,0.169481411576271,0.155037388205528,0.199483647942543,-0.042737916111946,0.295531123876572,0.061287861317396,0.088481001555920,-0.188844621181488,-0.238678410649300,0.095563434064388,-0.135712698101997,0.093506075441837,0.087485872209072,-0.181281641125679,0.210494026541710) * MODEL5_texOff(vec2(1,0));
res += mat4(0.028026906773448,0.024128880351782,0.050097666680813,-0.123376294970512,-0.140248894691467,0.120964772999287,0.034603312611580,-0.102458022534847,-0.163857072591782,-0.132062315940857,-0.035638026893139,0.065248303115368,-0.030502522364259,-0.050261836498976,-0.002343118190765,-0.227774575352669) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.085884705185890,0.025274226441979,-0.120553329586983,-0.032607790082693,0.001556280185468,0.043828275054693,-0.044698491692543,0.082073584198952,0.005707210395485,0.013459206558764,0.054869245737791,0.087544098496437,-0.102484770119190,-0.042742159217596,-0.049549214541912,0.079825975000858) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.116443328559399,-0.048066910356283,0.044440403580666,-0.139812454581261,0.011487287469208,-0.050408575683832,-0.053906045854092,0.125037342309952,-0.157703608274460,-0.011796770617366,0.095972746610641,-0.333806633949280,0.025291541591287,-0.011497152969241,-0.022211344912648,-0.030283866450191) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.137074843049049,0.072045393288136,-0.020095197483897,0.158254906535149,-0.115800119936466,-0.070534490048885,-0.035755772143602,-0.082702152431011,-0.094285823404789,-0.012510593049228,-0.003439175197855,0.085640862584114,0.003592415247113,-0.062535703182220,0.056568238884211,-0.180319517850876) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.068043142557144,0.079430945217609,-0.074386991560459,0.039150249212980,0.071877427399158,-0.033090107142925,0.007857252843678,0.047906190156937,-0.074888169765472,-0.034080822020769,0.105410970747471,-0.077594317495823,0.070475831627846,-0.083680860698223,-0.233746156096458,-0.279848456382751) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.319880813360214,0.035873770713806,0.051817037165165,0.002544928807765,0.116689264774323,-0.289339035749435,-0.192944079637527,-0.241148889064789,0.428079813718796,-0.586298763751984,-0.222879052162170,-0.155106365680695,0.122336022555828,-0.066404804587364,0.207619711756706,0.061154209077358) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.051833812147379,0.121568322181702,0.022030882537365,-0.028711318969727,0.051349159330130,0.050749041140079,-0.080131612718105,-0.141114637255669,-0.087576828896999,-0.084632299840450,0.025951864197850,0.135305196046829,0.051199641078711,0.063339836895466,-0.032522227615118,-0.070735253393650) * MODEL6_texOff(vec2(0,1));
res += mat4(0.089220494031906,-0.021194467321038,-0.030337614938617,0.007997733540833,0.082253962755203,-0.042186036705971,-0.129149600863457,-0.067938491702080,-0.012763715349138,-0.049739733338356,0.001092372578569,-0.152453541755676,-0.092435158789158,-0.120696984231472,-0.082432016730309,-0.250428378582001) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.185741558670998,0.002484304597601,0.114115335047245,-0.095967061817646,-0.149821043014526,-0.015520277433097,-0.147143408656120,-0.001313965534791,-0.368178665637970,0.080530822277069,-0.115470908582211,0.128299430012703,-0.133081778883934,0.056736763566732,0.069282650947571,-0.017664810642600) * MODEL6_texOff(vec2(1,0));
res += mat4(0.056231483817101,0.094290584325790,0.005611962173134,-0.120574846863747,-0.115517385303974,-0.077826261520386,-0.071856006979942,-0.090699203312397,-0.009451809339225,-0.120001032948494,0.051317885518074,-0.070774815976620,-0.026044460013509,-0.072697386145592,-0.060193322598934,0.061910536140203) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.533834636211395,-0.022232076153159,0.289504200220108,0.001977234380320) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_4x_Photo] mapping 6_5

vec4 hook()
{
vec4 res = vec4(-0.043192349374294,-0.067095950245857,-0.054383505135775,-0.051403924822807);
res += mat4(0.040474690496922,-0.008582074195147,-0.044247154146433,0.064394779503345,0.042140670120716,0.126696750521660,-0.041606366634369,-0.076925545930862,-0.055230077356100,-0.076173663139343,0.021204940974712,-0.049372736364603,0.083012305200100,-0.106442354619503,0.082770198583603,0.083581693470478) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.007638372480869,-0.138425454497337,-0.202380716800690,0.030367139726877,-0.065348148345947,0.050033681094646,-0.115072414278984,-0.031851053237915,0.073162235319614,-0.020412277430296,0.087037026882172,0.125378057360649,-0.081685021519661,0.058681979775429,0.183338746428490,0.056222960352898) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.035569213330746,-0.081194221973419,-0.078307829797268,0.019615327939391,-0.168126404285431,0.068297974765301,-0.065279245376587,-0.126077517867088,0.037547722458839,-0.002946896478534,0.011210184544325,0.097064033150673,-0.068466193974018,0.063760146498680,0.049222789704800,0.080658607184887) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.042228203266859,0.044257972389460,-0.165911614894867,0.066719457507133,0.057009357959032,-0.081346541643143,-0.042065598070621,-0.053808867931366,0.018135765567422,-0.044673126190901,0.112780854105949,0.048451848328114,-0.002398741198704,-0.050235241651535,0.020522927865386,-0.022265650331974) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.002653234871104,-0.234266713261604,-0.068713754415512,-0.125903844833374,-0.271624982357025,-0.272564470767975,0.178169891238213,-0.277993619441986,0.196193486452103,0.058865275233984,-0.031039360910654,0.308659404516220,0.069146320223808,-0.277126491069794,-0.318809956312180,-0.164611414074898) * MODEL1_texOff(vec2(0,0));
res += mat4(0.031274866312742,0.080586351454258,-0.048452712595463,0.022768044844270,-0.041564386337996,0.118121393024921,-0.107498921453953,-0.083137713372707,-0.072287328541279,-0.076181881129742,0.048716124147177,0.306771725416183,0.268257141113281,0.089604988694191,0.225113660097122,-0.090818502008915) * MODEL1_texOff(vec2(0,1));
res += mat4(0.103270463645458,0.053932595998049,-0.029365552589297,0.031875807791948,-0.110763341188431,0.049271110445261,0.067283928394318,0.016062913462520,-0.120363228023052,-0.108205720782280,0.144291132688522,-0.063120484352112,-0.014517753385007,0.058878295123577,0.110114149749279,0.029363889247179) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.125422433018684,-0.133063450455666,-0.036561861634254,-0.051592644304037,0.064913436770439,-0.041635658591986,0.006462421733886,0.168231114745140,-0.036625493317842,0.063399739563465,-0.834332048892975,0.110310249030590,0.062467046082020,-0.163639083504677,-0.099618256092072,-0.007508130744100) * MODEL1_texOff(vec2(1,0));
res += mat4(0.213440105319023,0.031822472810745,-0.050598431378603,-0.009152784943581,0.015257336199284,0.014622704125941,0.016432430595160,0.079017415642738,0.018853317946196,-0.034506272524595,-0.033190507441759,-0.033743828535080,0.041007652878761,-0.024793662130833,0.140415966510773,-0.016337634995580) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.034199338406324,0.113652057945728,-0.068092398345470,-0.013922299258411,0.060194183140993,-0.208180546760559,0.140429034829140,-0.115219555795193,-0.125706091523170,0.053270410746336,0.153147771954536,-0.004573210142553,-0.004880344960839,-0.211922049522400,-0.015768652781844,-0.045928034931421) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.181421756744385,0.151563212275505,-0.043964289128780,0.128213226795197,-0.077063001692295,-0.012883529067039,0.139128819108009,0.021387772634625,0.050110083073378,0.114273063838482,0.055420909076929,-0.174175098538399,0.078924447298050,0.127067580819130,0.119139350950718,0.100836947560310) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.046677030622959,0.026315318420529,-0.038025204092264,0.012065012007952,-0.074270531535149,0.055767647922039,0.046888582408428,-0.022597162052989,0.240597620606422,-0.158669725060463,0.025475913658738,0.027534523978829,-0.081914208829403,0.159709081053734,-0.014900256879628,-0.117549724876881) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.137044444680214,-0.112139590084553,-0.242528736591339,-0.151498690247536,-0.052074309438467,-0.124813780188560,0.280004471540451,-0.017960730940104,0.067362569272518,0.011168275028467,0.097209818661213,0.043499328196049,0.132900908589363,0.151700362563133,-0.132319435477257,0.026507483795285) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.286629229784012,0.094642572104931,-0.087843015789986,-0.208982378244400,-0.033146426081657,0.033042147755623,-0.019499922171235,0.016712680459023,-0.070128023624420,0.070002697408199,0.053737912327051,-0.173838868737221,0.181858912110329,-0.078458584845066,-0.008488832041621,-0.020461300387979) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.152368292212486,0.061374742537737,0.046956032514572,-0.197577133774757,0.143931180238724,-0.044397559016943,-0.119956798851490,0.134946614503860,-0.039704073220491,0.003722534049302,-0.191288262605667,0.033474665135145,0.130075603723526,0.042333584278822,-0.126464739441872,0.142121285200119) * MODEL2_texOff(vec2(0,1));
res += mat4(0.063761815428734,0.012404247187078,0.161677718162537,-0.010822448879480,0.029854252934456,-0.183387622237206,0.137215167284012,0.010686461813748,-0.027447089552879,-0.015912104398012,0.109813116490841,0.012021303176880,-0.092119418084621,-0.059734344482422,-0.066968262195587,-0.032323937863111) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.009292154572904,0.206710994243622,0.329193830490112,-0.011645823717117,-0.079114601016045,-0.052951693534851,0.051047302782536,0.020220909267664,0.160037353634834,0.146285429596901,0.172491297125816,0.083569541573524,-0.180959269404411,-0.139026507735252,-0.064377516508102,-0.069765776395798) * MODEL2_texOff(vec2(1,0));
res += mat4(0.062924094498158,-0.051995985209942,0.093239232897758,0.076750412583351,-0.062928326427937,-0.060474466532469,-0.025429805740714,-0.028687357902527,-0.002528562676162,0.000879512284882,-0.041777692735195,-0.012266349978745,-0.014477896504104,0.045492701232433,0.014291254803538,0.053326532244682) * MODEL2_texOff(vec2(1,1));
res += mat4(0.000551763165276,-0.051997240632772,0.004370070062578,-0.001301958807744,0.089863531291485,0.070554837584496,0.049425262957811,-0.014281005598605,-0.090160816907883,0.006765917874873,-0.014544856734574,-0.056518930941820,-0.082467518746853,-0.069321259856224,0.056684825569391,0.239611580967903) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.031237151473761,-0.064274571835995,0.030630437657237,-0.127286031842232,0.143834114074707,-0.073194891214371,-0.008034798316658,-0.148773103952408,0.026884457096457,-0.032572802156210,0.160705417394638,0.017210556194186,-0.075873136520386,0.076853968203068,-0.076039165258408,-0.004094093572348) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.062478732317686,-0.040199067443609,0.014131000265479,-0.088689632713795,0.022838998585939,-0.065159067511559,0.003809252055362,-0.133403047919273,-0.133474558591843,0.087807469069958,0.172647505998611,-0.095906965434551,0.150763571262360,-0.044024661183357,-0.130297780036926,-0.065438389778137) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.025483306497335,0.034814566373825,-0.008933149278164,-0.014671484008431,0.087806366384029,0.118291869759560,0.075615935027599,-0.027832517400384,0.096383549273014,-0.162973031401634,-0.095205545425415,-0.051849719136953,0.350621044635773,-0.091472342610359,-0.582473695278168,0.020500773563981) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.020556733012199,0.494221568107605,-0.078761763870716,0.085713483393192,-0.050310712307692,-0.065751962363720,0.095016956329346,0.137872740626335,-0.034750130027533,-0.307577908039093,0.325007110834122,0.078162021934986,0.029363419860601,0.010811008512974,0.221301823854446,-0.078456141054630) * MODEL3_texOff(vec2(0,0));
res += mat4(0.032730534672737,0.064532615244389,-0.466565102338791,0.020302206277847,-0.084287680685520,-0.003095104591921,-0.002331084106117,0.012624027207494,-0.100856162607670,0.079264909029007,0.211963847279549,0.109495982527733,-0.120952561497688,0.008851727470756,0.108751751482487,0.029782211408019) * MODEL3_texOff(vec2(0,1));
res += mat4(0.041390508413315,-0.036081507802010,-0.033637702465057,0.005570604931563,-0.129948630928993,-0.121929682791233,0.058944266289473,-0.052697539329529,-0.031189708039165,-0.046958267688751,-0.216684117913246,0.155836343765259,0.076365187764168,-0.212919309735298,0.005835335701704,-0.091255620121956) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.065367631614208,0.156538531184196,0.047209516167641,-0.034618023782969,-0.358550310134888,-0.198029831051826,0.358839392662048,-0.219253763556480,-0.077233679592609,0.010117242112756,-0.116722032427788,-0.057227231562138,-0.064559817314148,-0.005613605957478,0.080609217286110,0.067082233726978) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.004568493459374,0.031970966607332,-0.110007949173450,0.034844100475311,-0.239182531833649,0.060739584267139,0.130790099501610,-0.009150822646916,-0.067180044949055,0.030408885329962,-0.188925459980965,-0.038719739764929,-0.003002638695762,-0.013873255811632,-0.035820160061121,-0.016087161377072) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.095533072948456,0.048739805817604,0.061919450759888,0.122993364930153,-0.002434354042634,0.147359549999237,-0.242923721671104,0.093897990882397,-0.113187685608864,0.059094976633787,0.038300052285194,-0.047768332064152,-0.019960436969995,0.066581688821316,0.068095088005066,-0.077735990285873) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.198780685663223,0.119786970317364,0.162144303321838,0.266317665576935,0.251827925443649,-0.056089177727699,-0.281160324811935,-0.350042998790741,-0.115067742764950,0.117783553898335,-0.088208109140396,-0.004767165519297,0.018963541835546,0.089162178337574,0.099571250379086,-0.032307934015989) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.207112938165665,-0.071996331214905,0.027865739539266,-0.005359392613173,0.116751097142696,-0.030855236575007,-0.234832480549812,0.060391541570425,-0.008127260953188,-0.043998669832945,-0.023641593754292,0.032032612711191,0.148546993732452,-0.157788619399071,0.119489237666130,-0.088343702256680) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.062067940831184,0.190246611833572,0.017480624839664,-0.013944458216429,0.020326294004917,-0.137280374765396,0.017064090818167,0.026982096955180,-0.022200739011168,0.085131317377090,0.086699493229389,-0.037689682096243,0.061576161533594,0.052734255790710,0.104238092899323,0.060689087957144) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.069797106087208,-0.115689903497696,0.027731429785490,-0.075889214873314,-0.063048392534256,0.329199284315109,0.726387381553650,-0.022991593927145,-0.180515795946121,-0.068148083984852,-0.020705213770270,-0.113024577498436,-0.179162174463272,0.239278495311737,0.016923440620303,0.018926624208689) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.034438461065292,0.059845544397831,0.043247189372778,-0.213790401816368,-0.137507885694504,-0.047380018979311,-0.104047320783138,-0.015246795490384,0.056367654353380,0.026034727692604,-0.039826605468988,0.023885842412710,0.024199645966291,-0.038216043263674,0.008181343786418,0.037255827337503) * MODEL4_texOff(vec2(0,1));
res += mat4(0.076951228082180,-0.207384467124939,-0.004399983678013,0.015434780158103,-0.005142359528691,-0.100560717284679,-0.126754179596901,0.020044589415193,0.046832907944918,0.151638001203537,0.002707369625568,0.101555496454239,0.011912008747458,-0.088973358273506,0.050163179636002,-0.003837205469608) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.043955374509096,-0.056818488985300,0.144058883190155,0.029221571981907,-0.206573277711868,0.046228747814894,0.109702341258526,-0.073354437947273,0.147331699728966,-0.122588619589806,-0.102397501468658,0.229193806648254,0.158821538090706,0.185097619891167,0.035439979285002,0.115179196000099) * MODEL4_texOff(vec2(1,0));
res += mat4(0.329723358154297,0.090688586235046,0.020725393667817,0.149693444371223,0.038062360137701,-0.001620057155378,-0.162904068827629,0.002518790308386,-0.185578316450119,0.031469833105803,-0.078581266105175,-0.073403514921665,-0.157907471060753,-0.211558848619461,-0.012508356943727,-0.018806640058756) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.150699883699417,-0.061984006315470,0.045689724385738,0.121583148837090,-0.069524757564068,0.005603154655546,-0.106051534414291,-0.148944169282913,0.146654665470123,-0.068683467805386,0.085053481161594,0.130521997809410,0.131919741630554,-0.089453943073750,0.016180843114853,-0.005696768872440) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.267988592386246,0.070626266300678,0.076624542474747,0.247551694512367,-0.065349072217941,-0.143533229827881,0.020772596821189,-0.003570770844817,0.083247654139996,0.023506766185164,0.067848242819309,0.085688166320324,-0.147671580314636,0.094296395778656,0.116336174309254,0.041482765227556) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.295286983251572,-0.001363207935356,0.063939064741135,0.068289816379547,-0.333622187376022,-0.038378905504942,-0.057217229157686,-0.177190169692039,0.083540961146355,0.006365610286593,0.060280419886112,-0.042194008827209,0.168690279126167,0.020207833498716,0.051217865198851,-0.037320669740438) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.049130614846945,-0.059791281819344,-0.003139059524983,-0.094469442963600,0.093264110386372,-0.198759600520134,-0.011516868136823,-0.057713281363249,0.122060768306255,0.061874542385340,0.118730328977108,0.133699268102646,-0.074622131884098,-0.180571660399437,-0.117226317524910,0.148490563035011) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.314159661531448,-0.194113746285439,-0.008251397870481,0.025951744988561,-0.167220890522003,0.011052853427827,-0.054601877927780,-0.046092718839645,-0.064197704195976,-0.323500931262970,-0.172738179564476,-0.060781650245190,0.177273184061050,0.056973244994879,0.147381424903870,0.046754766255617) * MODEL5_texOff(vec2(0,0));
res += mat4(0.054928798228502,0.106733605265617,0.032177027314901,0.209451049566269,-0.040487222373486,0.020213630050421,-0.076421134173870,-0.074785478413105,-0.129661425948143,0.142079159617424,0.149274185299873,-0.256284683942795,0.065250575542450,-0.083527110517025,-0.073038600385189,0.009123271331191) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.125994130969048,0.050773296505213,-0.080042496323586,0.093072451651096,0.107588127255440,-0.088737025856972,-0.067708760499954,-0.004171452019364,0.002202597446740,0.148121997714043,0.023609898984432,0.011677356436849,0.087829612195492,-0.218779772520065,0.084588095545769,0.065683111548424) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.226394534111023,0.144028499722481,0.028717432171106,-0.056223064661026,0.216526821255684,0.195208579301834,-0.120407439768314,0.066708683967590,0.038577474653721,-0.122595384716988,0.111437618732452,0.014124248176813,-0.046602565795183,0.136863723397255,0.072249732911587,-0.103985309600830) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.217675641179085,-0.014457711949944,0.018185637891293,0.059152446687222,0.164931535720825,-0.037689443677664,-0.241835758090019,-0.023570410907269,-0.118071094155312,0.010657645761967,0.142574965953827,0.162068620324135,0.066327102482319,0.002426099730656,-0.118776448071003,0.049563594162464) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.050387632101774,0.046231869608164,0.144454151391983,0.017441151663661,0.001192966010422,0.040375422686338,-0.023167321458459,-0.008664914406836,0.045433010905981,0.050848793238401,0.008444943465292,-0.148846119642258,-0.018539039418101,0.025190031155944,-0.016206495463848,0.076766073703766) * MODEL6_texOff(vec2(-1,-1));
res += mat4(-0.165064111351967,0.262149244546890,0.173453971743584,0.085005909204483,-0.019484248012304,0.098157018423080,-0.040719054639339,-0.052636120468378,0.118527986109257,-0.048190470784903,-0.245663493871689,-0.471792966127396,-0.110245287418365,-0.002036102814600,-0.088610351085663,0.056765858083963) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.204810991883278,-0.007141977082938,0.044706072658300,0.032129567116499,-0.190863177180290,0.051233474165201,-0.109789788722992,-0.033372409641743,0.228937134146690,-0.031560059636831,0.074540100991726,0.013667494989932,-0.115145221352577,0.011144299991429,0.081360243260860,-0.022051120176911) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.110462881624699,0.036966282874346,0.085643738508224,-0.030494693666697,0.026363439857960,-0.112610951066017,0.081679292023182,0.021420815959573,-0.122362792491913,-0.088156022131443,0.020870493724942,-0.103724256157875,-0.068247884511948,-0.069892548024654,-0.022164989262819,-0.328031778335571) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.132352620363235,0.107734486460686,-0.065912730991840,-0.002263791393489,-0.061907142400742,0.089297115802765,0.420259535312653,0.024818222969770,0.313960492610931,0.006351583171636,0.088397264480591,0.198400080204010,0.354975372552872,-0.186784610152245,-0.122058987617493,-0.080773144960403) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.013269340619445,0.124820217490196,-0.104875572025776,-0.105647176504135,-0.081412293016911,0.020909009501338,0.122382514178753,0.032199237495661,0.127867996692657,-0.002676348900422,0.231558799743652,0.063203752040863,0.135855764150620,0.094565793871880,-0.047225292772055,-0.115826509892941) * MODEL6_texOff(vec2(0,1));
res += mat4(0.038903895765543,0.159577950835228,0.052912205457687,0.032500136643648,-0.087953560054302,0.025394806638360,-0.023476378992200,0.003921304363757,-0.002238701097667,-0.031696170568466,0.009754121303558,0.055166173726320,-0.017034364864230,-0.098202966153622,-0.089211344718933,-0.067536033689976) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.050338588654995,0.207551002502441,0.042792897671461,-0.013455656357110,0.151367351412773,-0.035013087093830,0.243271365761757,0.015139681287110,-0.041607432067394,0.008459452539682,-0.069082684814930,-0.148502841591835,-0.093128100037575,-0.003436933271587,0.035062432289124,-0.085356697440147) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.046789918094873,0.017583610489964,0.018768182024360,-0.071589171886444,0.086159475147724,-0.003012925619259,0.083855599164963,0.080589771270752,-0.190634012222290,-0.014478202909231,0.058290760964155,0.005967210978270,-0.112715207040310,0.053158644586802,0.043996099382639,-0.016324367374182) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.123470723628998,-0.216089442372322,0.114297002553940,-0.170348733663559) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_4x_Photo] mapping 6_6

vec4 hook()
{
vec4 res = vec4(0.125306963920593,0.023286972194910,-0.070205800235271,0.072399154305458);
res += mat4(0.026592714712024,0.114725917577744,0.066935673356056,0.000244061418925,0.052924796938896,-0.004049757961184,0.208164036273956,0.236645087599754,-0.020700870081782,-0.148867905139923,-0.557087302207947,-0.015962673351169,0.031394623219967,0.054935965687037,0.047869168221951,-0.039613854140043) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.156414791941643,0.158387646079063,0.068615421652794,-0.008801664225757,-0.075609438121319,0.232275247573853,0.184614375233650,-0.043401747941971,0.029455607756972,-0.298601001501083,-0.284594953060150,-0.141649425029755,0.032394267618656,0.188077792525291,0.038210034370422,-0.026128711178899) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.072968460619450,-0.021780494600534,-0.185713812708855,-0.063726454973221,-0.001544661237858,-0.107656076550484,0.131635576486588,-0.141202494502068,0.056381586939096,-0.016001632437110,-0.078746147453785,0.022115189582109,-0.045682378113270,-0.042137574404478,-0.055792529135942,-0.181219309568405) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.177485972642899,-0.282706260681152,-0.068493716418743,0.357257992029190,-0.062749236822128,-0.152225136756897,-0.191434845328331,0.443786919116974,0.057590138167143,0.182914689183235,0.189211323857307,-0.308759301900864,0.028212975710630,-0.116204284131527,0.221236646175385,-0.002107927110046) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.247252225875854,-0.283675491809845,-0.096587911248207,-0.122505873441696,0.064699776470661,-0.060980338603258,-0.166401609778404,-0.034897901117802,-0.078749194741249,0.311513692140579,0.310896962881088,-0.408844053745270,-0.162620142102242,0.100538462400436,0.142663359642029,-0.196034207940102) * MODEL1_texOff(vec2(0,0));
res += mat4(0.139970570802689,0.144487828016281,0.044810127466917,0.131498754024506,-0.092502027750015,0.011474058963358,0.065753571689129,-0.018156640231609,0.119628205895424,-0.109351187944412,-0.062725372612476,-0.125301629304886,0.148441448807716,0.070527762174606,-0.065074585378170,-0.134594291448593) * MODEL1_texOff(vec2(0,1));
res += mat4(0.097573466598988,0.058019433170557,0.037134386599064,0.120241411030293,-0.127566158771515,0.084460146725178,-0.058235924690962,0.087151214480400,0.157626658678055,-0.094896070659161,0.219402506947517,-0.134262964129448,-0.053001318126917,-0.082784257829189,-0.158381149172783,-0.078819431364536) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.006094842683524,-0.012434887699783,0.100381471216679,-0.204560890793800,0.044257499277592,-0.031744875013828,-0.179594621062279,-0.050558798015118,-0.207234725356102,0.223292842507362,0.123541869223118,-0.197440743446350,0.209308713674545,-0.049638953059912,-0.116849504411221,-0.154097288846970) * MODEL1_texOff(vec2(1,0));
res += mat4(0.106098882853985,0.078129053115845,-0.007887795567513,0.063642010092735,0.056652866303921,0.026283679530025,0.005386142060161,-0.068690493702888,0.144428610801697,0.001348889549263,0.005597706884146,-0.096199229359627,0.255547821521759,-0.027867969125509,0.002332290168852,-0.014104929752648) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.162886321544647,0.009334406815469,0.099677033722401,-0.001037723850459,0.000448189850431,0.037034589797258,-0.041570708155632,-0.021246556192636,-0.099630534648895,-0.001562729594298,0.054439257830381,0.163416400551796,0.051158141344786,-0.018986647948623,-0.188675999641418,-0.086002603173256) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.056699555367231,0.117470227181911,0.090969100594521,0.136096298694611,-0.019675930961967,-0.045703396201134,0.071605682373047,0.151671379804611,0.147864758968353,-0.205682858824730,-0.154617592692375,0.010077437385917,0.059725292026997,-0.091061003506184,-0.214037939906120,-0.119470991194248) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.010112260468304,0.079556733369827,0.119595780968666,-0.002581554930657,0.031113542616367,0.054390620440245,0.145456179976463,0.085895903408527,0.151183873414993,-0.002320962259546,-0.233834952116013,-0.113551288843155,-0.008734058588743,0.091373831033707,-0.115186117589474,0.129367575049400) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.051535345613956,-0.113666728138924,0.126080095767975,-0.097555816173553,0.080126196146011,0.000067948378273,-0.126886233687401,-0.027088208124042,0.093984611332417,-0.038491316139698,-0.127729579806328,0.037822850048542,0.040502689778805,-0.027560537680984,-0.190302550792694,0.020010204985738) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.114260144531727,-0.054703425616026,-0.012937882915139,0.144731283187866,0.188915818929672,-0.019095249474049,-0.033429738134146,0.077075630426407,-0.258554488420486,0.108306616544724,0.004824586678296,-0.111095272004604,0.161084040999413,-0.263691812753677,-0.114195771515369,0.096635952591896) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.045565385371447,0.038104612380266,0.020495157688856,0.136460214853287,0.159133419394493,-0.042313143610954,-0.090637236833572,-0.089999973773956,-0.014802295714617,0.136647596955299,0.100984588265419,-0.127574816346169,0.099196605384350,0.076211608946323,0.028236731886864,0.019457284361124) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.046103879809380,-0.197604402899742,-0.163415655493736,0.145623266696930,0.189285039901733,0.011027107015252,-0.091354064643383,0.064080387353897,0.040109429508448,0.058344025164843,-0.212872624397278,0.143994882702827,0.107363127171993,0.063929341733456,0.040928333997726,0.038014575839043) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.137331858277321,-0.073442868888378,-0.119772642850876,0.171409875154495,0.197770535945892,-0.001460467581637,0.018368758261204,0.082238197326660,-0.125630795955658,0.008635826408863,-0.103014528751373,0.135708749294281,0.001618843874894,0.037876248359680,0.123527273535728,0.053946316242218) * MODEL2_texOff(vec2(1,0));
res += mat4(0.047168541699648,-0.033801428973675,-0.032722104340792,0.062030270695686,0.087364152073860,0.022246222943068,0.065023429691792,0.007098850328475,0.075375951826572,-0.018670244142413,-0.130185708403587,-0.050044625997543,-0.041907101869583,0.066540151834488,0.027393918484449,-0.038731474429369) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.011009171605110,0.044450845569372,-0.022007277235389,-0.114055074751377,0.119069762527943,0.033585760742426,-0.048954002559185,-0.004177426919341,-0.021991299465299,0.079868078231812,0.096619628369808,-0.109426423907280,-0.072942286729813,0.047271337360144,-0.040740743279457,-0.045938171446323) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.231608510017395,-0.032600473612547,-0.117460280656815,-0.184234142303467,-0.020938327535987,-0.004254233557731,-0.104109138250351,-0.045095592737198,0.079062491655350,-0.007541214581579,-0.117812655866146,0.107785277068615,0.048565901815891,0.152999863028526,0.056086976081133,0.092469364404678) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.056565493345261,-0.058329850435257,-0.055086851119995,-0.131089955568314,0.024431444704533,-0.035375162959099,-0.018833488225937,0.025351600721478,-0.055685650557280,0.026570687070489,0.087512537837029,0.039386015385389,0.058902930468321,0.091778114438057,-0.053089838474989,-0.104419574141502) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.299819409847260,0.116023510694504,0.013784654438496,-0.115141928195953,0.097245045006275,-0.080546639859676,0.066188000142574,-0.178751319646835,-0.117674805223942,-0.047137007117271,0.072576016187668,-0.083849698305130,-0.475899040699005,0.243240386247635,-0.090853817760944,-0.148529857397079) * MODEL3_texOff(vec2(0,-1));
res += mat4(-0.676448345184326,-0.058675631880760,-0.018114857375622,-0.051457837224007,0.060767594724894,0.146786138415337,0.094388209283352,0.046946045011282,-0.089779369533062,-0.130964979529381,-0.328214257955551,0.279142558574677,-0.022991742938757,-0.267388999462128,-0.270828604698181,-0.107880301773548) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.665439486503601,-0.038544464856386,-0.017116842791438,-0.072669476270676,0.008312942460179,-0.026352899149060,0.115293107926846,-0.032127179205418,0.156936526298523,-0.130589932203293,-0.133602529764175,0.168597653508186,-0.103068336844444,-0.054956242442131,-0.080578237771988,-0.030528819188476) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.021597450599074,-0.026019975543022,0.071729734539986,-0.067147463560104,0.010099578648806,-0.051370121538639,-0.090788811445236,0.052103251218796,0.024225972592831,-0.064107403159142,-0.050625566393137,0.011557156220078,-0.163775071501732,-0.059780918061733,0.101348198950291,0.205634981393814) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.269791334867477,0.046794250607491,-0.004418024793267,-0.005878939293325,0.107937887310982,-0.194752767682076,-0.125706627964973,-0.019708715379238,-0.041608791798353,0.061308853328228,0.234356179833412,0.028164651244879,0.087509043514729,0.064505748450756,0.058498021215200,-0.018033195286989) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.241556242108345,0.036514800041914,0.006503174081445,-0.006096420343965,-0.078251652419567,-0.065887652337551,0.055123168975115,0.052652493119240,-0.032056909054518,-0.031154282391071,0.021400358527899,0.075353212654591,-0.130066514015198,0.083919003605843,0.014396938495338,-0.007978080771863) * MODEL3_texOff(vec2(1,1));
res += mat4(0.072980970144272,-0.057562947273254,0.017133550718427,0.035339795053005,-0.079017482697964,0.060375224798918,-0.100279264152050,-0.008045767433941,-0.012168782763183,0.177133187651634,0.136448442935944,-0.083180353045464,-0.032952100038528,-0.052717234939337,-0.036991372704506,-0.093849085271358) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.022341363132000,0.197980195283890,0.219124302268028,0.056414000689983,-0.097222454845905,-0.198513790965080,0.061224035918713,-0.052076425403357,-0.185539454221725,0.106709249317646,-0.070301443338394,0.063763342797756,-0.147750377655029,-0.144894078373909,-0.051279187202454,-0.034882716834545) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.106201611459255,0.010647812858224,-0.119798295199871,-0.042364738881588,0.088570021092892,0.171756446361542,0.098196811974049,0.070556253194809,-0.067902259528637,-0.179334327578545,-0.083327420055866,-0.057172182947397,0.035919457674026,-0.135923355817795,-0.012014050036669,-0.036948505789042) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.011597049422562,-0.060581490397453,-0.363581687211990,-0.094195246696472,-0.002027067588642,-0.050437577068806,-0.152893170714378,-0.092524670064449,-0.054774224758148,0.050537683069706,-0.127144306898117,-0.016795348376036,-0.086960226297379,-0.198996976017952,0.019385006278753,0.010218468494713) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.286951333284378,-0.407398343086243,0.078533366322517,-0.072056196630001,-0.033802177757025,-0.237029835581779,-0.227290675044060,0.042861461639404,-0.096656531095505,0.091994859278202,0.259916216135025,-0.549829006195068,-0.018524553626776,0.216271430253983,0.041852399706841,-0.005357750225812) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.043531689792871,0.092371210455894,-0.012573093175888,0.105511575937271,-0.094330161809921,-0.092035606503487,-0.015369255095720,-0.027106553316116,-0.056561004370451,0.128700733184814,0.167336061596870,0.000811231555417,0.043395347893238,0.026448452845216,0.071872644126415,-0.052681289613247) * MODEL4_texOff(vec2(0,1));
res += mat4(0.028916046023369,0.202851369976997,0.120829373598099,0.027611052617431,0.086937814950943,-0.141947418451309,0.128246203064919,0.126352593302727,0.017196161672473,0.062653191387653,0.012762725353241,-0.026020027697086,-0.146467298269272,-0.141974896192551,-0.200198918581009,0.114718154072762) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.050054319202900,0.060870200395584,-0.237449899315834,0.014282370917499,0.035743214190006,0.028019811958075,0.157790526747704,-0.014560623094440,0.087458848953247,0.046252150088549,-0.074606120586395,0.070753879845142,-0.286125510931015,0.047294840216637,-0.062277354300022,-0.009826460853219) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.002663400257006,-0.001814270159230,0.057052869349718,-0.072464242577553,-0.151793658733368,-0.052821453660727,-0.087832704186440,-0.013319668360054,0.032318625599146,-0.022365689277649,0.037117145955563,-0.014596470631659,-0.012430571950972,-0.192694589495659,-0.023070519790053,0.000211202117498) * MODEL4_texOff(vec2(1,1));
res += mat4(0.314412593841553,0.074164710938931,0.370008885860443,-0.019901942461729,-0.057252727448940,0.042422588914633,0.044415399432182,-0.033708903938532,0.119146458804607,-0.047881115227938,-0.034009519964457,-0.067332707345486,-0.017342571169138,0.065925344824791,0.226197004318237,-0.107779525220394) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.138430058956146,0.126040115952492,0.074923343956470,-0.139833077788353,0.001617008936591,0.117355503141880,0.005834158975631,0.056155249476433,0.023926256224513,0.186155334115028,0.105236917734146,0.148522242903709,0.064536631107330,0.243148207664490,0.090868756175041,0.057161182165146) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.046392075717449,-0.141536936163902,-0.027599617838860,-0.015746491029859,-0.121691860258579,-0.164451524615288,-0.054882586002350,0.193926185369492,-0.030732059851289,0.099122084677219,0.061254158616066,0.029918599873781,-0.116024054586887,0.024113116785884,0.071065478026867,0.068456180393696) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.180244103074074,-0.135530799627304,0.051572773605585,0.177575871348381,-0.078844852745533,-0.046460762619972,-0.004952793475240,0.133208543062210,0.152574911713600,-0.170567363500595,0.168418958783150,0.293556064367294,0.141723275184631,-0.099271543323994,0.019980492070317,0.060531467199326) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.140070796012878,0.020903971046209,0.093825906515121,-0.122525744140148,-0.018870214000344,0.051201503723860,0.065073437988758,0.042139425873756,0.271768242120743,-0.134016364812851,0.000667163287289,0.126422673463821,0.144143879413605,0.019205370917916,0.163105845451355,0.191987231373787) * MODEL5_texOff(vec2(0,0));
res += mat4(0.085119321942329,0.010809596627951,0.289030015468597,-0.133225694298744,0.020345214754343,0.039669327437878,0.044987004250288,0.018774917349219,0.154541403055191,0.041319128125906,-0.117725290358067,0.093887783586979,0.174743428826332,-0.042262949049473,-0.044921737164259,-0.035838693380356) * MODEL5_texOff(vec2(0,1));
res += mat4(0.180062383413315,-0.144522532820702,-0.018904320895672,0.178151547908783,0.096837975084782,-0.115952298045158,-0.138930752873421,0.001663751550950,-0.093653373420238,0.066618129611015,-0.118616543710232,0.130320042371750,-0.076895378530025,-0.273511469364166,-0.122231520712376,-0.233103722333908) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.051889162510633,-0.140818327665329,0.145473346114159,0.215478464961052,0.095851607620716,0.101468861103058,-0.169356614351273,-0.090026631951332,0.053628489375114,-0.102709494531155,0.052798077464104,0.042698722332716,-0.083276279270649,-0.113113306462765,-0.128979161381721,-0.021794199943542) * MODEL5_texOff(vec2(1,0));
res += mat4(0.120690561830997,0.000452443462564,0.239921659231186,-0.024870881810784,0.014906786382198,0.094855658710003,-0.042316485196352,0.010259396396577,0.163984552025795,0.001075760694221,-0.064965486526489,0.059232156723738,-0.058683924376965,0.127452835440636,0.049315869808197,-0.002548280404881) * MODEL5_texOff(vec2(1,1));
res += mat4(0.015325231477618,0.088590644299984,-0.288685262203217,-0.136310115456581,-0.078283943235874,0.000802427472081,-0.050171114504337,0.138037487864494,-0.088355943560600,-0.025661045685410,-0.255196511745453,0.106337867677212,0.136368185281754,0.027956625446677,0.359987795352936,0.001882806769572) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.050252769142389,-0.259378641843796,-0.006391045637429,-0.001148023060523,-0.013071037828922,0.070659898221493,0.126366049051285,0.080187812447548,-0.000953302602284,-0.583728075027466,-0.259196519851685,0.004535468760878,0.001440773252398,0.232806667685509,0.122576773166656,-0.015270211733878) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.089072279632092,-0.014068442396820,-0.052647199481726,0.069908507168293,-0.060318700969219,0.095457635819912,0.037347670644522,0.076735109090805,-0.053606785833836,-0.199779242277145,-0.001790162525140,-0.143025368452072,-0.014711105264723,-0.041643764823675,0.049527667462826,-0.004919892642647) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.024626271799207,0.146993741393089,0.040013823658228,-0.016848225146532,0.037153985351324,-0.128693759441376,-0.102283760905266,0.135097995400429,-0.060240849852562,0.021534988656640,0.120226517319679,-0.303949862718582,-0.027773149311543,0.084830030798912,-0.337892562150955,-0.051854468882084) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.056366376578808,0.023706758394837,0.002277773804963,-0.075458548963070,0.206206142902374,-0.211897775530815,-0.091401681303978,-0.036909967660904,0.144925177097321,-0.057585459202528,-0.280135452747345,-0.137819543480873,0.077267713844776,-0.177030369639397,-0.230856552720070,0.009517760947347) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.036738421767950,-0.019811892881989,0.100952766835690,-0.082325570285320,-0.019075894728303,-0.011818505823612,0.042857903987169,0.055427305400372,-0.034976776689291,0.002508667297661,-0.064862929284573,-0.081931523978710,0.143291413784027,0.194211900234222,0.187194183468819,0.006639358587563) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.028582355007529,0.007703597657382,-0.130139440298080,0.057482991367579,-0.028985351324081,0.024130765348673,-0.095768943428993,0.030090039595962,0.098504744470119,0.002120852936059,0.103801988065243,0.108014620840549,0.106048770248890,-0.013910217210650,-0.021228509023786,0.024597851559520) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.052843719720840,0.096118271350861,-0.027612024918199,0.043209623545408,-0.002425980987027,-0.045143585652113,-0.136520355939865,-0.067857220768929,0.092013619840145,0.167620137333870,0.154551506042480,-0.002374909585342,0.195882886648178,0.019942143931985,0.057556621730328,0.151000052690506) * MODEL6_texOff(vec2(1,0));
res += mat4(0.036130424588919,0.177609026432037,0.014404479414225,0.033723495900631,-0.060166116803885,0.027040582150221,0.096654988825321,0.006367547437549,-0.073026865720749,0.007353212218732,-0.034640207886696,0.024783730506897,0.068885393440723,-0.028623836115003,-0.015200259163976,0.115111462771893) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.002036775229499,0.009680582210422,-0.059783302247524,0.107017956674099) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL1
//!DESC [AiUpscale_HQ_4x_Photo] mapping 7_1

vec4 hook()
{
vec4 res = vec4(-0.098375506699085,-0.186316385865211,0.030578689649701,-0.017510635778308);
res += mat4(0.160825416445732,-0.064884923398495,-0.033856719732285,-0.067602634429932,0.116037085652351,0.002052519703284,0.093503825366497,0.000653228722513,-0.038437150418758,0.000898171914741,-0.085885830223560,-0.076303333044052,0.004468667786568,0.071535266935825,0.077587865293026,-0.258021235466003) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.058170434087515,-0.056506831198931,-0.056312069296837,0.020270990207791,0.029011698439717,0.162860855460167,-0.029290881007910,-0.164487034082413,-0.071897484362125,-0.161689355969429,0.028562869876623,-0.090227782726288,-0.016402538865805,-0.124827146530151,0.117470949888229,0.256709486246109) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.088015444576740,0.087872713804245,-0.019132358953357,0.084479890763760,-0.000751271203626,0.073671832680702,-0.072669796645641,0.045532643795013,0.079749710857868,-0.078133240342140,-0.057318776845932,-0.015938265249133,-0.031301815062761,-0.068547219038010,-0.050466701388359,0.028987091034651) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.017475066706538,0.034559078514576,-0.039207372814417,0.152444615960121,-0.158261954784393,0.229475766420364,0.033263847231865,-0.130109325051308,0.262687265872955,-0.189984902739525,-0.061076622456312,0.075615465641022,0.031462259590626,-0.055082254111767,0.067364454269409,0.121553339064121) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.121726945042610,0.034500543028116,-0.067642681300640,-0.039981298148632,0.045117761939764,-0.122475877404213,0.110649406909943,-0.166780173778534,0.127821221947670,0.016661575064063,-0.377414971590042,-0.248345673084259,-0.093821100890636,0.251811206340790,0.109134815633297,-0.097359701991081) * MODEL7_texOff(vec2(0,0));
res += mat4(0.042423076927662,0.154760986566544,-0.044150948524475,0.341006278991699,-0.013265363872051,0.020672196522355,0.213956922292709,-0.125328928232193,-0.028901031240821,0.313334494829178,-0.082679264247417,-0.162635341286659,0.002077123150229,-0.086356438696384,-0.047521628439426,0.153614923357964) * MODEL7_texOff(vec2(0,1));
res += mat4(0.380057752132416,-0.063633352518082,-0.109485417604446,0.068469323217869,-0.095600850880146,-0.046123240143061,-0.011115597561002,-0.047832552343607,-0.120017640292645,0.065640971064568,0.095945321023464,0.010163914412260,0.041922163218260,0.019822470843792,0.187799736857414,0.030386269092560) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.150562688708305,-0.019707936793566,0.081918157637119,-0.113941848278046,-0.079930327832699,-0.060944430530071,0.080954417586327,0.006793888285756,-0.046792775392532,0.131623417139053,0.135224983096123,0.202348485589027,-0.064303837716579,-0.104301735758781,-0.090002544224262,-0.008527546189725) * MODEL7_texOff(vec2(1,0));
res += mat4(0.215923249721527,-0.009727290831506,0.017469048500061,-0.112948335707188,0.016085520386696,-0.172976776957512,0.096605136990547,0.014533651061356,-0.038914170116186,-0.073595248162746,0.063698790967464,0.092915549874306,0.010385215282440,0.102910019457340,-0.009567143395543,0.006949622184038) * MODEL7_texOff(vec2(1,1));
res += mat4(0.073501206934452,0.194097697734833,0.025619942694902,0.005939259193838,-0.023612722754478,0.084681995213032,-0.100313015282154,-0.307829558849335,0.049131553620100,0.016175681725144,0.104996129870415,-0.054368570446968,0.003901821793988,0.028989905491471,-0.024867223575711,-0.034119229763746) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.081337310373783,0.223319694399834,-0.149368733167648,-0.191243767738342,-0.006211237050593,0.016127293929458,0.082751616835594,-0.056544210761786,0.059317234903574,-0.142683595418930,0.108710914850235,-0.085634335875511,-0.030938958749175,0.049740858376026,-0.130386099219322,0.040224861353636) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.015514990314841,0.093991093337536,-0.087604291737080,-0.287073850631714,0.018992094323039,0.098873771727085,-0.020819714292884,0.129900529980659,0.073317259550095,-0.095601879060268,0.175364792346954,-0.159903109073639,-0.005983903072774,-0.043008547276258,-0.032799229025841,-0.138291478157043) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.106501147150993,-0.060623455792665,0.064014948904514,-0.065718278288841,-0.139400929212570,0.003987313248217,0.252876609563828,0.102951668202877,0.101995177567005,-0.021528434008360,0.137483894824982,0.077299140393734,0.040237694978714,-0.209855899214745,-0.052447434514761,-0.027979917824268) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.006086496170610,-0.118145562708378,0.033860053867102,-0.082598432898521,0.088284932076931,-0.154674306511879,-0.076717607676983,0.148153305053711,0.007974670268595,-0.068100810050964,0.054486621171236,-0.020993754267693,-0.250148534774780,-0.075217172503471,-0.266443997621536,-0.204546511173248) * MODEL8_texOff(vec2(0,0));
res += mat4(0.038162242621183,-0.071507304906845,-0.021432636305690,0.044786479324102,0.011578255333006,-0.143927931785583,0.096364848315716,-0.100117295980453,-0.004313167650253,-0.153881177306175,0.146897092461586,-0.037947881966829,-0.059671346098185,-0.146916642785072,0.032941691577435,-0.045877072960138) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.153486952185631,0.000123031713883,0.006878900341690,0.108252078294754,0.000415236514527,-0.024399643763900,-0.121119514107704,-0.061056528240442,-0.061554875224829,0.045472152531147,0.144674599170685,-0.086577072739601,0.029635803773999,-0.031610563397408,-0.005827486049384,-0.005304776597768) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.081410095095634,-0.024777371436357,0.174347966909409,0.110211797058582,0.103348448872566,-0.014139717444777,-0.013283908367157,-0.048749420791864,-0.028458390384912,-0.266612410545349,0.352595329284668,-0.076398268342018,-0.096587859094143,0.112837433815002,-0.175878673791885,0.132194146513939) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.122956670820713,0.240657135844231,0.073545061051846,0.068405970931053,0.008840966038406,0.062898442149162,0.019969569519162,0.028569692745805,-0.080218508839607,0.012507949024439,0.104541465640068,-0.088912509381771,-0.037675429135561,-0.078269779682159,-0.009879948571324,0.065195500850677) * MODEL8_texOff(vec2(1,1));
res += mat4(0.090992063283920,-0.115857154130936,-0.047027375549078,-0.025912268087268,-0.068596623837948,-0.183727234601974,0.031907420605421,-0.017669787630439,-0.097418427467346,-0.072068378329277,0.070804990828037,-0.095093511044979,0.093786142766476,-0.142265796661377,0.032391920685768,-0.064027123153210) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.059918280690908,-0.191895246505737,-0.067249648272991,-0.144516482949257,-0.380318135023117,-0.130818247795105,0.215596646070480,0.045972045511007,0.024083983153105,0.057181887328625,0.073531784117222,-0.081365205347538,0.014610311947763,-0.197725862264633,0.166429355740547,-0.054986543953419) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.035387352108955,0.072132267057896,-0.111419051885605,0.018024403601885,0.177367642521858,-0.101652204990387,-0.072787530720234,0.066234268248081,-0.037078816443682,0.235105365514755,0.048325367271900,-0.095881782472134,0.048075303435326,0.039222933351994,0.015112617984414,-0.119755312800407) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.092672735452652,0.028980549424887,-0.027240345254540,0.167023360729218,0.106672435998917,-0.019185246899724,-0.073511406779289,0.002534355735406,-0.242781460285187,0.268123507499695,-0.143043622374535,0.050340067595243,0.130872875452042,0.084338866174221,-0.237378999590874,-0.016670925542712) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.208864286541939,-0.132438525557518,-0.152211025357246,-0.316995382308960,0.022257169708610,0.110422536730766,-0.479498088359833,-0.226897045969963,0.106486402451992,0.201436817646027,-0.452433735132217,0.011829092167318,0.325404524803162,0.009264437481761,-0.032102230936289,0.233409166336060) * MODEL9_texOff(vec2(0,0));
res += mat4(0.105746380984783,-0.012721993960440,-0.040977139025927,-0.233699813485146,0.116655141115189,0.046325247734785,0.070180952548981,-0.105498082935810,-0.018614688888192,-0.068449035286903,0.124527655541897,-0.094784878194332,0.043485037982464,-0.030887838453054,-0.036503862589598,0.130248650908470) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.095729939639568,0.042161084711552,0.162593409419060,0.070013515651226,0.068274445831776,0.017130279913545,-0.036730203777552,-0.018038267269731,-0.073963724076748,-0.078477479517460,-0.037512827664614,-0.011178966611624,0.134628057479858,-0.092595301568508,-0.120011687278748,-0.035450935363770) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.076869949698448,0.396188676357269,0.322066783905029,0.200227230787277,0.024177459999919,0.069037303328514,-0.017625626176596,-0.008582683280110,0.125678956508636,-0.092699266970158,-0.012131240218878,0.042490541934967,0.180433034896851,-0.230922073125839,0.005885016638786,-0.190661191940308) * MODEL9_texOff(vec2(1,0));
res += mat4(0.000053740590374,0.146249204874039,0.066298007965088,0.250213116407394,0.037987228482962,-0.010038199834526,0.026861613616347,0.056833688169718,0.020194321870804,0.200943678617477,-0.243454769253731,0.087480299174786,0.040288459509611,-0.056337282061577,0.077710092067719,-0.069721736013889) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.204768016934395,0.108762077987194,0.288979291915894,0.169833645224571,0.010171821340919,0.078607268631458,-0.148284852504730,-0.137028440833092,-0.115934275090694,0.062419325113297,0.047331862151623,-0.045243151485920,0.037095315754414,0.142361760139465,0.009399251081049,-0.007083343807608) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.005286699160933,0.202586680650711,0.208014845848083,0.384514212608337,-0.162217274308205,0.131804317235947,-0.052734963595867,-0.033047631382942,-0.126941934227943,-0.089533410966396,0.142796128988266,-0.106356732547283,-0.172624975442886,-0.099737852811813,0.143061518669128,0.037671573460102) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.002701141173020,-0.078826867043972,0.172232851386070,0.106347329914570,0.060723949223757,0.005610582418740,-0.077603258192539,-0.050743293017149,-0.029489863663912,-0.013966840691864,0.001772603951395,-0.232004404067993,0.008607153780758,-0.036807455122471,0.101365685462952,-0.026839112862945) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.288835763931274,0.152037441730499,0.065547071397305,0.095221474766731,-0.222202658653259,0.026162637397647,-0.094615824520588,-0.024401819333434,-0.021235978230834,-0.052336972206831,-0.006397602614015,0.073870085179806,0.246470004320145,0.063335888087749,-0.001680629909970,0.078719355165958) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.051165204495192,-0.074078500270844,-0.210675999522209,0.157766520977020,-0.070009171962738,-0.284876853227615,-0.608792245388031,-0.073338799178600,-0.354404836893082,0.037945717573166,0.185686305165291,0.267922252416611,-0.218879029154778,0.433582633733749,0.087793536484241,0.115367613732815) * MODEL10_texOff(vec2(0,0));
res += mat4(0.098277851939201,-0.038687985390425,0.100271522998810,0.000265889335424,-0.094490125775337,-0.025517547503114,-0.207829743623734,-0.067995928227901,-0.122186139225960,0.007812762632966,-0.129399552941322,0.181120827794075,0.086326584219933,-0.031664114445448,-0.103471808135509,0.082756467163563) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.024547535926104,0.061298545449972,-0.175991743803024,-0.031204063445330,-0.067908175289631,0.033241722732782,0.065895795822144,-0.025131974369287,0.010337110608816,0.053918454796076,-0.017946654930711,0.015852335840464,0.025195728987455,0.038339328020811,0.086806170642376,-0.112862490117550) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.073594011366367,0.090094037353992,-0.011539754457772,-0.072289027273655,-0.052378561347723,0.126903101801872,-0.039706096053123,0.127117678523064,0.101838678121567,-0.124868057668209,-0.176224902272224,0.073345199227333,0.050609637051821,-0.131113767623901,-0.135421842336655,-0.090650938451290) * MODEL10_texOff(vec2(1,0));
res += mat4(0.079018399119377,0.042120680212975,-0.024305697530508,-0.023283936083317,0.029679872095585,-0.115216709673405,-0.041363690048456,0.037407677620649,-0.098620757460594,-0.012835443951190,-0.018336530774832,-0.024822190403938,-0.043339967727661,0.125768333673477,0.121264815330505,-0.040330346673727) * MODEL10_texOff(vec2(1,1));
res += mat4(0.054981075227261,-0.036510650068521,-0.150207102298737,0.097905017435551,0.043578960001469,0.013746024109423,0.052940562367439,0.017013410106301,0.059650026261806,-0.003109121229500,-0.005398592911661,0.084336243569851,-0.046374570578337,0.023815667256713,0.033507306128740,0.057983867824078) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.055950239300728,0.153250545263290,-0.119192458689213,0.003416128689423,-0.208741068840027,0.081335872411728,0.051275290548801,-0.063969708979130,0.067189991474152,-0.141228139400482,0.008723354898393,-0.203739136457443,0.085285618901253,0.288649976253510,-0.063987515866756,0.120247490704060) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.034838914871216,0.115288108587265,0.102643698453903,-0.057068906724453,-0.033491902053356,0.161604434251785,-0.106303967535496,0.143611222505569,0.022726623341441,0.111452475190163,0.032815989106894,-0.072319388389587,-0.060327481478453,0.036144081503153,0.134612530469894,0.015277422964573) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.225190877914429,0.138804912567139,-0.242422297596931,-0.052402369678020,0.068442389369011,0.079841464757919,-0.121986858546734,-0.094479605555534,0.266509443521500,-0.009169423021376,0.080978423357010,0.015396928414702,-0.094626694917679,-0.019192755222321,0.170569330453873,0.064326509833336) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.079347416758537,0.102818854153156,-0.239497646689415,-0.196808129549026,-0.319850862026215,0.002067343099043,0.020081374794245,0.156707346439362,0.321227431297302,-0.580664336681366,0.068249851465225,-0.097860179841518,-0.151652514934540,0.169521749019623,-0.073669061064720,0.243013054132462) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.039210647344589,0.097905933856964,-0.025401171296835,-0.009137834422290,-0.179007336497307,-0.484397172927856,0.134694755077362,-0.051577623933554,-0.060620330274105,0.072702795267105,0.045912180095911,-0.042639374732971,-0.074878856539726,0.072920314967632,0.211151167750359,0.224327787756920) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.028955351561308,0.136435925960541,0.177446126937866,0.178463712334633,-0.094701603055000,-0.094999000430107,-0.060729142278433,0.023123376071453,0.032626803964376,0.013525652699172,-0.004496238194406,-0.019441759213805,-0.175607383251190,0.141135811805725,-0.171544164419174,0.067781850695610) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.076362662017345,-0.016835479065776,-0.107722327113152,0.192966654896736,-0.005740023218095,-0.014926110394299,-0.032069344073534,-0.092859156429768,0.001670323428698,0.179592490196228,0.154388949275017,0.092259705066681,0.107371941208839,-0.093050815165043,-0.373699665069580,0.057185702025890) * MODEL11_texOff(vec2(1,0));
res += mat4(0.032018721103668,0.055200751870871,-0.035044562071562,-0.063505746424198,-0.042634230107069,0.189785122871399,0.055100623518229,0.055833343416452,0.092032596468925,-0.034556381404400,0.054346576333046,0.001164768007584,-0.052420698106289,0.130872443318367,-0.229035049676895,-0.057086560875177) * MODEL11_texOff(vec2(1,1));
res += mat4(0.124786026775837,-0.229334756731987,0.116626203060150,-0.119439251720905,-0.082431845366955,-0.002522618044168,-0.029013331979513,0.113806791603565,-0.140857100486755,-0.171467840671539,0.055748209357262,-0.024683460593224,0.041120987385511,-0.076044820249081,0.057618819177151,0.034275956451893) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.123019948601723,-0.144546538591385,-0.108726583421230,-0.052354142069817,-0.078366219997406,0.099424354732037,0.195224255323410,0.171265020966530,0.008562414906919,-0.177287697792053,0.256048113107681,-0.037661030888557,0.135874748229980,0.000042465762817,0.085210807621479,0.043747786432505) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.014492549002171,0.043678566813469,-0.166013270616531,0.210627242922783,-0.033630736172199,0.068125732243061,0.010121447965503,0.265501618385315,-0.011112032458186,-0.211125805974007,0.103878781199455,0.159522771835327,0.024348884820938,0.010525621473789,0.013899897225201,-0.142219513654709) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.226985469460487,0.137437462806702,0.266973167657852,0.273680627346039,0.041118022054434,-0.029308933764696,-0.073305584490299,0.124292559921741,0.022972039878368,0.139220863580704,-0.030447535216808,0.079511903226376,0.172821268439293,0.060661006718874,0.063326150178909,0.201223939657211) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.043718747794628,-0.049414176493883,-0.239902988076210,0.099368520081043,0.003518711309880,0.290899991989136,0.191164642572403,-0.000088258348114,0.183075219392776,0.100968107581139,-0.004713923670352,-0.122675746679306,-0.019584659487009,0.003867005230859,0.050346985459328,0.100448556244373) * MODEL12_texOff(vec2(0,0));
res += mat4(0.050870213657618,-0.106827460229397,-0.056058984249830,-0.110060416162014,-0.061666872352362,0.139398604631424,0.047537308186293,0.065062925219536,-0.061708837747574,0.176814705133438,0.029251178726554,0.036539439111948,-0.084658354520798,0.117606200277805,0.002419566502795,0.194658994674683) * MODEL12_texOff(vec2(0,1));
res += mat4(0.004196844995022,-0.056447166949511,-0.042891416698694,-0.136274993419647,0.086859226226807,-0.005142762791365,-0.065318875014782,0.093967728316784,0.007081641815603,-0.040349524468184,-0.047114305198193,-0.167411208152771,0.156611829996109,0.023889176547527,-0.004743229132146,-0.038361221551895) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.008023717440665,0.113271281123161,0.094960592687130,-0.022299006581306,0.008402602747083,0.010489020496607,-0.260955452919006,-0.047747623175383,0.050803937017918,-0.156897202134132,-0.360582321882248,0.031833939254284,0.034591108560562,-0.053962554782629,-0.128149688243866,-0.114769384264946) * MODEL12_texOff(vec2(1,0));
res += mat4(0.000598604034167,0.124705366790295,-0.062952205538750,0.081371866166592,0.014125611633062,-0.115760289132595,-0.098549008369446,-0.077144302427769,-0.055153824388981,-0.030635038390756,-0.221824243664742,-0.123818546533585,0.138789892196655,-0.189881786704063,0.126438513398170,-0.041801474988461) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.011715143918991,0.099828995764256,0.126167312264442,-0.086330845952034) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL2
//!DESC [AiUpscale_HQ_4x_Photo] mapping 7_2

vec4 hook()
{
vec4 res = vec4(-0.176565051078796,-0.106535233557224,0.019908184185624,-0.164901986718178);
res += mat4(0.006043973378837,-0.034846682101488,0.069172605872154,-0.047279953956604,0.075407572090626,0.027459884062409,-0.072984129190445,0.177846819162369,0.037730887532234,-0.019079716876149,-0.146214559674263,-0.010951176285744,-0.000560528191272,0.073717668652534,0.111070699989796,-0.187963634729385) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.080023229122162,0.085304059088230,0.005973041523248,0.095271244645119,0.110978484153748,0.152418226003647,0.112744383513927,-0.171637773513794,-0.032133538275957,-0.094727426767349,0.044445145875216,0.227406084537506,0.080028876662254,0.034136366099119,-0.104742892086506,0.039618320763111) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.035676945000887,0.047041822224855,-0.035610247403383,0.150170922279358,-0.036811769008636,-0.099670477211475,-0.064995154738426,-0.043837819248438,0.052945692092180,-0.101093158125877,-0.019818179309368,-0.022267110645771,-0.020846489816904,-0.099359989166260,-0.009114808402956,-0.019219914451241) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.049827851355076,0.078335061669350,0.043366655707359,0.033686116337776,-0.177186906337738,0.037452150136232,-0.406183838844299,0.025764722377062,0.215402245521545,-0.181382209062576,-0.124371774494648,-0.083016045391560,0.231561824679375,-0.022210560739040,-0.216675281524658,-0.068490736186504) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.066363178193569,-0.183029428124428,0.045590259134769,0.226022526621819,-0.175929307937622,0.133530884981155,-0.660087645053864,0.009778155013919,-0.414353132247925,0.181608080863953,-0.129216372966766,0.119234494864941,-0.080225110054016,0.315750211477280,-0.232768490910530,-0.102018788456917) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.118024192750454,-0.132508769631386,0.053639445453882,0.110326431691647,-0.040120076388121,0.033624961972237,-0.346664845943451,-0.082433588802814,-0.111488372087479,0.122727021574974,-0.251589238643646,-0.064083687961102,0.070087127387524,0.007480394560844,0.132237344980240,0.031031426042318) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.059753622859716,-0.039278615266085,0.077230200171471,-0.029150933027267,-0.141619428992271,0.053538817912340,-0.051106225699186,-0.001288836705498,-0.075049899518490,-0.267552435398102,-0.124372519552708,-0.077740333974361,0.035502541810274,0.232813283801079,0.195495888590813,-0.055112726986408) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.121665298938751,0.179134041070938,0.179269880056381,0.280589282512665,-0.013431330211461,-0.090069949626923,-0.069358073174953,-0.052386507391930,0.240122407674789,-0.049811493605375,0.037020161747932,-0.080921560525894,-0.151015132665634,0.003812783164904,0.076913177967072,0.005411472637206) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.042543970048428,-0.033168848603964,-0.034131433814764,0.022514596581459,-0.075919114053249,-0.090869300067425,-0.169413715600967,0.026672504842281,-0.086919717490673,0.119066931307316,0.025400446727872,-0.027305789291859,0.073871023952961,-0.081280171871185,-0.001243121922016,-0.056789018213749) * MODEL7_texOff(vec2(1,1));
res += mat4(0.161449313163757,0.172102630138397,0.061633490025997,-0.021844677627087,0.013542871922255,0.046874031424522,-0.172012269496918,-0.223373904824257,0.042399030178785,0.066130518913269,-0.058736752718687,0.008282808586955,0.056047942489386,-0.034182690083981,0.044284000992775,-0.094321884214878) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.143302544951439,0.104470729827881,-0.068521030247211,0.125017642974854,0.021958006545901,0.055959660559893,-0.136594817042351,-0.199126869440079,-0.092329330742359,0.138786777853966,-0.061346512287855,-0.012996873818338,0.037199988961220,0.045863911509514,-0.028726749122143,-0.129132285714149) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.028430908918381,0.050304505974054,-0.045581735670567,0.154347553849220,0.106652975082397,0.082883290946484,-0.056165486574173,0.071299664676189,-0.028192061930895,-0.106225676834583,-0.053739666938782,0.017616776749492,-0.072663649916649,-0.101861998438835,0.074024260044098,-0.029390849173069) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.143283694982529,0.263244003057480,-0.095846071839333,-0.071545153856277,-0.208779811859131,-0.248696833848953,-0.023049972951412,-0.069500118494034,0.098836235702038,-0.017439644783735,0.043990015983582,-0.002134857699275,0.034033209085464,-0.187847301363945,0.150837033987045,-0.102925926446915) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.192364349961281,-0.133582413196564,-0.157366976141930,0.011656060814857,-0.020765798166394,0.091188110411167,-0.020551096647978,-0.168774977326393,-0.164738267660141,0.323924481868744,-0.124108858406544,-0.029350224882364,-0.028420628979802,0.207807436585426,-0.027570785954595,0.108201205730438) * MODEL8_texOff(vec2(0,0));
res += mat4(0.121317334473133,-0.259142130613327,0.186643436551094,-0.037857104092836,-0.143062725663185,0.150180041790009,0.044240634888411,0.073681220412254,0.000486889592139,0.003775913966820,-0.084538735449314,-0.045792438089848,0.034342400729656,-0.145789891481400,0.009049355983734,-0.137253969907761) * MODEL8_texOff(vec2(0,1));
res += mat4(0.084171816706657,0.457142442464828,0.024671792984009,0.013956638984382,-0.067551642656326,-0.393694788217545,-0.129424929618835,0.105646267533302,0.036981686949730,0.173777848482132,-0.049624305218458,-0.034443598240614,-0.047061502933502,-0.037714190781116,-0.035884071141481,-0.046152941882610) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.089184902608395,-0.175764486193657,-0.056604035198689,0.028798492625356,0.105449452996254,0.042940143495798,-0.230041027069092,-0.053322605788708,-0.096007280051708,0.136413440108299,-0.044412612915039,-0.066984236240387,0.214156016707420,0.096277937293053,0.021096330136061,0.000766014389228) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.067106492817402,-0.220177337527275,0.141183331608772,0.024265851825476,-0.011406356468797,0.216162502765656,-0.006762089207768,0.013160920701921,0.001962762093171,0.273042470216751,-0.263092368841171,-0.051859900355339,0.142386719584465,-0.216492205858231,0.190265089273453,-0.001851173117757) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.034033022820950,0.013502650894225,0.005512717645615,0.051959764212370,-0.142357259988785,0.092529051005840,0.107735499739647,0.069968260824680,0.032128129154444,0.363664746284485,-0.061724346131086,0.090647153556347,-0.018268283456564,0.086322456598282,0.145157188177109,0.007670957595110) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.046650506556034,-0.063340663909912,-0.128838911652565,-0.229880452156067,-0.430097252130508,-0.401674240827560,0.072258330881596,-0.082575693726540,-0.032648053020239,0.025463759899139,-0.117285564541817,-0.082025416195393,-0.038226135075092,-0.051417332142591,0.049752179533243,0.350663751363754) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.132837876677513,-0.061338454484940,0.098791077733040,-0.148860380053520,0.029665641486645,-0.127673164010048,0.005084666423500,-0.027522917836905,0.069738730788231,0.103566549718380,0.027328336611390,-0.011680652387440,0.011243718676269,-0.053278069943190,0.034413151443005,-0.027881110087037) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.190100371837616,-0.046771764755249,0.179614588618279,0.082313768565655,0.067549847066402,0.091734513640404,0.133007928729057,0.046790245920420,0.080453231930733,0.055589914321899,-0.120844669640064,0.071333602070808,0.076762810349464,0.123394593596458,0.167071759700775,0.082560069859028) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.146258354187012,0.078645117580891,-0.191722542047501,0.183604404330254,-0.257425576448441,-0.106353379786015,-0.038351837545633,0.183318510651588,0.333157926797867,0.136754348874092,-0.188660696148872,-0.113825112581253,-0.038718000054359,-0.062240149825811,0.211699426174164,-0.067831724882126) * MODEL9_texOff(vec2(0,0));
res += mat4(0.065076880156994,0.038385409861803,0.056868243962526,0.089211866259575,-0.078577473759651,-0.020710861310363,-0.020956281572580,0.091604396700859,0.022036241367459,0.135578021407127,-0.061283160001040,0.080934211611748,-0.155919596552849,-0.139175042510033,-0.015972135588527,0.076219923794270) * MODEL9_texOff(vec2(0,1));
res += mat4(0.019089717417955,-0.146536365151405,-0.147818654775620,0.025250617414713,0.051998529583216,-0.025929266586900,-0.009479087777436,0.039623729884624,-0.025060253217816,0.158513247966766,0.124917499721050,0.126574873924255,-0.111811690032482,0.004730162210763,0.128940656781197,-0.026896566152573) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.223319798707962,-0.012838906608522,0.062162425369024,-0.199627980589867,0.080526873469353,0.156584843993187,-0.005382381379604,-0.031282510608435,0.109124980866909,-0.121570147573948,-0.068248033523560,0.042338799685240,0.051680628210306,0.084173254668713,-0.036274962127209,0.043300904333591) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.017482427880168,0.137789279222488,0.219637453556061,0.037028379738331,0.031226057559252,0.164543136954308,0.078691989183426,-0.002224814612418,0.047143086791039,0.064686261117458,0.023744054138660,0.045348074287176,0.018419411033392,-0.064236961305141,-0.070151120424271,0.019600985571742) * MODEL9_texOff(vec2(1,1));
res += mat4(0.095491118729115,-0.110145933926105,0.049700073897839,0.073855780065060,0.020379861816764,-0.016511695459485,-0.020188376307487,0.024564990773797,0.030589522793889,0.049287375062704,-0.114771835505962,-0.072641581296921,-0.053837686777115,-0.058971732854843,0.016102980822325,-0.108208507299423) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.066922344267368,-0.094808034598827,0.194122537970543,-0.150583639740944,0.018950998783112,-0.225019529461861,-0.072825096547604,-0.263203769922256,0.083710424602032,-0.129007771611214,0.075382344424725,-0.021430635824800,-0.037673078477383,0.025810537859797,-0.171737581491470,0.167829111218452) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.029735531657934,0.121610105037689,-0.169760122895241,-0.040356304496527,0.003567803883925,-0.152325615286827,0.273414552211761,-0.046782579272985,-0.064685635268688,-0.170371070504189,0.043349336832762,-0.151936560869217,-0.098825439810753,-0.212168008089066,-0.067830108106136,-0.103170044720173) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.161211699247360,-0.085430182516575,0.289289444684982,0.091427914798260,0.229834571480751,-0.126083701848984,0.085690557956696,0.089765444397926,-0.016218364238739,-0.126587405800819,-0.059929590672255,-0.130361795425415,0.080784380435944,-0.150339394807816,-0.007317314390093,-0.083481438457966) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.163438051939011,0.036239750683308,-0.003977772779763,0.175465375185013,0.188209578394890,0.147754043340683,-0.036966774612665,-0.047366082668304,-0.212104216217995,0.004824210889637,-0.014198470860720,-0.282409280538559,-0.023114319890738,0.265522480010986,-0.030319198966026,-0.170910418033600) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.153688415884972,0.140216201543808,0.101010121405125,0.129833415150642,0.144002825021744,-0.189633011817932,0.073686085641384,0.022836625576019,0.257612198591232,-0.098359934985638,0.067256584763527,-0.058963038027287,0.013965021818876,-0.241055071353912,-0.226172775030136,-0.142588481307030) * MODEL10_texOff(vec2(0,1));
res += mat4(0.093608871102333,-0.012165419757366,0.074819423258305,0.085234433412552,-0.002917090430856,-0.089626319706440,-0.117685660719872,-0.026030993089080,0.002243124879897,-0.217123314738274,0.029676597565413,-0.005075495690107,-0.146087631583214,-0.331012845039368,-0.081212110817432,0.031921554356813) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.012469279579818,-0.148687869310379,-0.047570485621691,-0.015087439678609,0.195707142353058,0.005038201343268,0.125616148114204,-0.041941363364458,0.104047708213329,0.161398649215698,0.113786317408085,-0.154014453291893,-0.150459140539169,0.083978228271008,-0.216859742999077,0.139500886201859) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.021118469536304,0.144508242607117,-0.041798822581768,-0.077691495418549,0.022856265306473,0.030809735879302,0.031263932585716,0.032978713512421,0.092357039451599,-0.235581502318382,-0.019909629598260,-0.027771715074778,-0.052555266767740,-0.176910936832428,-0.147037506103516,0.019195605069399) * MODEL10_texOff(vec2(1,1));
res += mat4(0.087177261710167,0.117962829768658,-0.112559713423252,-0.038890771567822,-0.028041796758771,0.104277387261391,-0.078853890299797,0.049750588834286,0.021209605038166,-0.036583114415407,-0.068728655576706,0.067750856280327,-0.000123502861243,-0.049117442220449,0.026539074257016,-0.059192128479481) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.015497015789151,0.096499003469944,-0.044500958174467,-0.286882519721985,0.025410475209355,-0.023484215140343,-0.197728276252747,0.066983669996262,-0.021678004413843,0.171710550785065,-0.007897608913481,0.196883574128151,0.133696839213371,0.000081736616266,0.060715407133102,0.042478170245886) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.058588497340679,0.145935863256454,-0.074697740375996,0.022561630234122,-0.080592527985573,0.075811080634594,-0.059810895472765,-0.278197795152664,0.106470942497253,0.034056685864925,-0.018417267128825,0.094619415700436,-0.049184672534466,0.156801000237465,-0.115878671407700,0.002433782210574) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.174035012722015,0.107875816524029,-0.030906358733773,0.104723125696182,-0.133448719978333,0.296080291271210,0.127453789114952,0.020655488595366,0.088112883269787,0.023448826745152,0.039927933365107,0.121808432042599,-0.103550404310226,0.035055696964264,0.088556289672852,0.003897381015122) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.110459759831429,-0.231452792882919,-0.113590039312840,0.174847558140755,0.349799752235413,-0.075911000370979,0.224283888936043,0.011414704844356,-0.438500076532364,-0.090480893850327,-0.013878165744245,0.321536630392075,-0.214911118149757,-0.086730293929577,-0.025718640536070,-0.160934448242188) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.027449002489448,0.127667337656021,-0.174522832036018,0.077846392989159,0.014264285564423,0.037698190659285,-0.209304332733154,-0.157603308558464,0.024770678952336,0.033052444458008,-0.056277178227901,0.149875715374947,-0.080455325543880,0.126831069588661,-0.093172580003738,-0.036491230130196) * MODEL11_texOff(vec2(0,1));
res += mat4(0.136704578995705,-0.130889222025871,-0.139379605650902,-0.036409668624401,0.059137821197510,0.107934258878231,0.091985113918781,0.028780471533537,-0.017105519771576,-0.084926247596741,-0.131610214710236,0.066737115383148,-0.130205735564232,-0.070893295109272,-0.130398198962212,-0.058561131358147) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.042687304317951,0.004798824898899,0.066108576953411,-0.068857386708260,-0.067778490483761,-0.151764631271362,-0.177217781543732,-0.050110802054405,0.101880922913551,-0.229148656129837,0.214246481657028,-0.005496580153704,0.131394594907761,0.105173721909523,-0.041899785399437,-0.053919330239296) * MODEL11_texOff(vec2(1,0));
res += mat4(0.005440001841635,0.038760200142860,-0.077211208641529,0.074475444853306,-0.004088949412107,0.152704268693924,0.041991017758846,-0.133217751979828,0.030941221863031,0.098996929824352,0.024501550942659,0.066919542849064,0.195552557706833,0.058990303426981,0.165316328406334,-0.057371266186237) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.100894756615162,-0.063822776079178,-0.138244807720184,0.110808409750462,0.083154365420341,0.082145206630230,-0.152365654706955,0.007806058507413,-0.069834895431995,0.071889713406563,0.036486610770226,-0.028246227651834,-0.084227338433266,-0.011648377403617,0.045635424554348,0.077559210360050) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.058241929858923,0.041836645454168,0.131245389580727,-0.079286165535450,0.042289651930332,0.056689094752073,0.061257712543011,0.030732370913029,-0.230708867311478,-0.076930388808250,0.190743654966354,0.084598213434219,0.059454649686813,-0.090990640223026,0.199498593807220,0.160276517271996) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.172269031405449,-0.033051952719688,0.275784879922867,-0.044023085385561,0.066886924207211,0.044425617903471,0.005469812545925,-0.024091452360153,0.057684287428856,0.122372508049011,0.205422684550285,0.213937565684319,0.118751101195812,0.054485533386469,-0.016897298395634,-0.027418212965131) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.177979961037636,-0.433790594339371,0.358465284109116,-0.044716093689203,-0.025697246193886,0.067372523248196,0.065951161086559,0.010439169593155,0.145871549844742,0.099247276782990,0.049851562827826,-0.066271677613258,-0.025488246232271,-0.029308151453733,-0.092093393206596,0.080488406121731) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.099245600402355,-0.195542603731155,-0.005220906343311,-0.067056640982628,0.297872394323349,-0.073560394346714,0.175981134176254,-0.113738141953945,0.225899636745453,-0.101937107741833,0.059702709317207,0.001561196520925,-0.076233282685280,0.031737983226776,0.057217996567488,0.164284646511078) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.173336923122406,-0.133518710732460,-0.075397983193398,-0.001092041260563,0.152696147561073,0.089000903069973,-0.182130917906761,-0.047305341809988,0.132473751902580,0.153647884726524,0.010310580953956,-0.158471211791039,-0.334970384836197,0.265557736158371,-0.054737932980061,0.108096875250340) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.068268187344074,-0.035471096634865,-0.014646643772721,0.050368674099445,0.167070299386978,0.079261608421803,0.030913351103663,0.049769788980484,-0.070449948310852,0.103292375802994,0.003969647455961,-0.006550387013704,0.006324729882181,-0.087128326296806,0.143894299864769,0.048383239656687) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.002122419420630,-0.142142653465271,-0.144914880394936,0.021667905151844,0.000134701898787,0.051283083856106,-0.122181415557861,0.075460180640221,-0.030356641858816,0.049069225788116,0.234021157026291,0.053360559046268,0.078086502850056,0.033676486462355,-0.009883662685752,0.074142903089523) * MODEL12_texOff(vec2(1,0));
res += mat4(0.133718937635422,-0.050533831119537,0.274048894643784,-0.002665127161890,-0.029138013720512,0.240270495414734,-0.186808183789253,-0.000604355707765,-0.071777068078518,-0.197197005152702,0.059858992695808,0.152460694313049,-0.158642604947090,0.098610617220402,-0.109728693962097,0.126263946294785) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.054698795080185,0.121736705303192,0.053022395819426,-0.318285554647446) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL3
//!DESC [AiUpscale_HQ_4x_Photo] mapping 7_3

vec4 hook()
{
vec4 res = vec4(-0.118983253836632,-0.073991760611534,-0.079123511910439,-0.045328140258789);
res += mat4(-0.003115134779364,-0.042737197130919,-0.049275174736977,0.034199632704258,0.177037835121155,-0.013533079065382,0.139891266822815,-0.135726988315582,-0.027916802093387,-0.004867373500019,-0.140727788209915,0.119002819061279,0.105895586311817,-0.025449899956584,0.159725382924080,0.138284474611282) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.026105578988791,0.091318599879742,-0.132764115929604,-0.057788532227278,0.033157464116812,0.147694990038872,0.072018601000309,-0.060551643371582,0.079920575022697,-0.144241869449615,0.170570895075798,-0.161500200629234,-0.006237319204956,0.092781238257885,0.157696843147278,-0.120475441217422) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.003196178702638,0.035036783665419,0.042509060353041,-0.013147166930139,0.043352995067835,0.006216547451913,0.078808695077896,-0.056565899401903,-0.019764715805650,0.003630879800767,0.126077413558960,-0.050708577036858,-0.020369678735733,-0.033614013344049,0.008108414709568,-0.035253673791885) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.072485536336899,-0.002730158856139,-0.005696332547814,0.026892788708210,0.028005709871650,0.062652699649334,-0.007758632302284,-0.090721689164639,0.191411852836609,-0.063741080462933,0.216477945446968,0.257364511489868,0.312472909688950,-0.192527011036873,0.123229235410690,0.183559700846672) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.091033220291138,0.101732559502125,0.449273198843002,0.099725320935249,0.014688001014292,0.091181151568890,0.343209773302078,-0.122471936047077,-0.558759391307831,0.282440066337585,-0.216786757111549,0.008269176818430,0.148580253124237,-0.096194066107273,-0.235257536172867,-0.264354228973389) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.020995035767555,-0.011747376993299,0.090519689023495,-0.049708656966686,0.140215009450912,-0.039850033819675,-0.002419081749395,0.071799173951149,-0.019462442025542,0.016133237630129,-0.304189741611481,-0.316736042499542,-0.072399497032166,0.004206488840282,0.107050590217113,0.202218532562256) * MODEL7_texOff(vec2(0,1));
res += mat4(0.082494400441647,-0.060664672404528,0.066910013556480,-0.135331988334656,-0.030372330918908,-0.035360921174288,-0.016793092712760,-0.186643525958061,0.200992166996002,-0.060478854924440,-0.056724507361650,-0.075106151401997,0.180612280964851,-0.125859439373016,0.148761093616486,-0.018735103309155) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.016381496563554,0.086066186428070,-0.174154907464981,0.056449558585882,-0.082729965448380,0.016565425321460,0.022186877205968,0.020353559404612,-0.303901553153992,0.001269783242606,-0.066597409546375,0.305926889181137,0.211295917630196,0.082651175558567,-0.035208322107792,-0.164013162255287) * MODEL7_texOff(vec2(1,0));
res += mat4(0.036896664649248,-0.066717110574245,0.277502417564392,0.159444943070412,0.138066813349724,0.041587695479393,0.001722425338812,0.041810508817434,0.058765407651663,0.020986640825868,0.067732244729996,0.038891464471817,-0.088306576013565,-0.024364406242967,0.008219468407333,-0.003416602266952) * MODEL7_texOff(vec2(1,1));
res += mat4(0.065560892224312,-0.019332079216838,0.259887665510178,-0.191033452749252,-0.129014611244202,-0.006267739925534,-0.213624686002731,0.017180152237415,0.042171008884907,-0.025836735963821,-0.088268831372261,0.114447362720966,-0.067363396286964,-0.013257494196296,-0.125545963644981,0.144567832350731) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.058608923107386,0.072674222290516,-0.146815389394760,0.057339660823345,0.015754424035549,-0.120466791093349,-0.039779357612133,-0.107053287327290,0.116941899061203,-0.108574956655502,0.138797253370285,-0.051643863320351,-0.036646172404289,-0.133290871977806,-0.237915024161339,0.155773997306824) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.051843509078026,-0.042117469012737,0.074832238256931,0.086555577814579,-0.084901809692383,-0.066550403833389,0.054916813969612,-0.071787647902966,-0.022882780060172,0.044717811048031,-0.069836050271988,-0.106785610318184,-0.002653475385159,-0.149063199758530,-0.131137624382973,-0.040385171771049) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.337075412273407,0.007026218343526,-0.117973163723946,-0.204590737819672,-0.036904547363520,0.019143437966704,-0.357573688030243,0.021001683548093,0.003874374087900,-0.091807425022125,0.140534490346909,0.135050043463707,0.191420182585716,-0.254399091005325,0.058459442108870,0.078267075121403) * MODEL8_texOff(vec2(0,-1));
res += mat4(0.019413063302636,0.020674141123891,0.001356945140287,-0.293946564197540,0.107452750205994,-0.079724013805389,0.205907925963402,0.250147044658661,-0.021820509806275,-0.012451700866222,-0.171265646815300,-0.078464902937412,-0.081490613520145,-0.155555084347725,-0.106510058045387,0.142032295465469) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.059105791151524,0.049221757799387,0.004718421958387,-0.019600547850132,-0.056726895272732,-0.085208803415298,-0.140857309103012,-0.292117774486542,0.002467521466315,0.084475368261337,-0.018380632624030,0.023527901619673,-0.048197280615568,-0.135043472051620,0.032453041523695,0.077941119670868) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.230704411864281,0.097912013530731,-0.027578419074416,0.210447341203690,-0.065238177776337,0.138194024562836,0.035453706979752,-0.007244023960084,0.072724945843220,-0.074377454817295,-0.017131224274635,0.020468600094318,0.039558339864016,-0.070971116423607,-0.080699369311333,-0.062338050454855) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.048108942806721,0.032229170203209,-0.023632902652025,-0.105494432151318,0.129160732030869,-0.041134171187878,-0.150327906012535,-0.011591622605920,0.116511575877666,0.127045020461082,0.050081949681044,0.181237593293190,-0.046262033283710,-0.250269830226898,-0.284321278333664,0.162235438823700) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.054428629577160,-0.033380128443241,0.030500851571560,-0.132653325796127,-0.054551802575588,-0.065496429800987,-0.006707097403705,-0.107396423816681,0.078517161309719,0.020827880129218,-0.162520915269852,-0.073374003171921,-0.137963384389877,-0.101802609860897,-0.184505879878998,0.096506200730801) * MODEL8_texOff(vec2(1,1));
res += mat4(0.022598346695304,-0.038166988641024,0.050912436097860,0.053592413663864,-0.098734639585018,-0.074087575078011,-0.114495575428009,-0.208112418651581,0.085020847618580,-0.116340428590775,0.169546917080879,0.031434018164873,0.025629818439484,0.013249703682959,0.004792807623744,0.043195340782404) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.039944827556610,0.216766223311424,-0.187919184565544,0.113952197134495,-0.052657525986433,-0.066756993532181,-0.445202350616455,-0.390549600124359,0.060702621936798,-0.126111790537834,0.233787238597870,0.084744073450565,-0.192334473133087,0.113301366567612,0.076870679855347,0.024471301585436) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.092337734997272,0.057610306888819,-0.148372948169708,-0.003484470304102,-0.053586941212416,-0.035495210438967,0.011491240933537,-0.024608677253127,0.037573408335447,-0.013564146123827,0.120835572481155,0.065012179315090,-0.048600535839796,0.127883821725845,-0.069364927709103,0.208071872591972) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.133781343698502,0.001415523700416,0.001758043188602,0.080721400678158,-0.056952804327011,-0.040985766798258,0.060573887079954,0.103383056819439,0.005187799222767,0.019843477755785,0.024952448904514,-0.226344078779221,0.012253531254828,0.026271926239133,-0.163177460432053,-0.056261140853167) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.227780878543854,0.013692901469767,-0.061184033751488,-0.107142157852650,-0.055484000593424,0.033654931932688,0.223171219229698,0.084665156900883,0.020995985716581,-0.130322635173798,0.013155226595700,0.271049976348877,-0.152481615543365,-0.265009164810181,-0.073758170008659,0.175274580717087) * MODEL9_texOff(vec2(0,0));
res += mat4(0.044110875576735,-0.109458759427071,0.157156631350517,0.110311113297939,-0.049132380634546,0.044184379279613,0.077148571610451,-0.027220128104091,0.088248342275620,-0.006584636867046,-0.064630702137947,-0.133566036820412,0.072793960571289,0.054077602922916,-0.157225683331490,0.216618120670319) * MODEL9_texOff(vec2(0,1));
res += mat4(0.139252513647079,0.064771905541420,0.116625353693962,-0.111877515912056,-0.003231657203287,-0.103482529520988,-0.021990882232785,0.039834804832935,-0.085119441151619,-0.080045394599438,-0.075815267860889,-0.105582371354103,-0.015277601778507,-0.097979277372360,-0.058657694607973,0.023205127567053) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.143817275762558,-0.005228964611888,-0.368158638477325,0.173954203724861,-0.048138231039047,0.026024663820863,-0.139497175812721,-0.000537167245056,0.008615680038929,0.064142376184464,-0.103330574929714,0.179806590080261,0.037328433245420,0.017101665958762,0.116955228149891,0.072255656123161) * MODEL9_texOff(vec2(1,0));
res += mat4(0.034013811498880,0.044588249176741,0.074768140912056,0.015115489251912,0.003673555795103,0.065807715058327,-0.053043626248837,0.008135988377035,0.055156782269478,-0.018721099942923,-0.012315884232521,0.010791657492518,-0.013788169249892,0.067404963076115,-0.043667338788509,0.011730858124793) * MODEL9_texOff(vec2(1,1));
res += mat4(0.070966020226479,-0.088131412863731,0.024477951228619,0.178441062569618,-0.031420249491930,0.005566783715039,-0.164668485522270,0.057357627898455,0.041549250483513,0.035058528184891,-0.012858438305557,0.023230072110891,-0.103276073932648,0.153964489698410,-0.122502140700817,-0.055862139910460) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.053060226142406,-0.138623297214508,0.012277048081160,0.087204031646252,-0.068763978779316,0.046320792287588,0.249420791864395,0.158787816762924,0.055484730750322,-0.005958252120763,0.203281819820404,0.009817271493375,0.066021509468555,0.092747949063778,0.096947364509106,-0.188322603702545) * MODEL10_texOff(vec2(-1,0));
res += mat4(-0.064473912119865,0.089538209140301,0.010144735686481,-0.083562865853310,0.063192263245583,0.081716738641262,0.077593944966793,0.182931959629059,0.038358878344297,-0.037310939282179,0.017490882426500,0.074485629796982,-0.125556305050850,0.021494966000319,0.173749551177025,-0.033272158354521) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.283137857913971,-0.111953318119049,-0.058402404189110,-0.015959320589900,0.031763121485710,0.011252530850470,0.055496975779533,0.235955506563187,0.110872857272625,0.002674294868484,0.010445905849338,-0.100837565958500,0.127157405018806,0.087069451808929,0.161003485321999,0.038953859359026) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.063510760664940,0.142844274640083,0.205425307154655,0.140350237488747,-0.005191537085921,-0.274552881717682,0.039872951805592,-0.128218218684196,-0.259250283241272,0.034971833229065,-0.121415607631207,-0.138301327824593,0.065366901457310,0.259616047143936,0.036425814032555,-0.172329157590866) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.115710139274597,-0.082709476351738,-0.119885422289371,-0.051353462040424,-0.001186657347716,0.084366336464882,-0.070207893848419,-0.163336277008057,0.133398875594139,0.113637484610081,-0.062732733786106,0.211744874715805,-0.067051202058792,0.244606733322144,0.003150606295094,0.029440622776747) * MODEL10_texOff(vec2(0,1));
res += mat4(0.202514871954918,-0.100958481431007,0.178501561284065,0.068715155124664,0.088810503482819,-0.068488784134388,-0.002985543105751,-0.055535979568958,0.009073438122869,0.037125147879124,0.065955713391304,-0.097863920032978,0.088153079152107,0.115854620933533,0.089476861059666,-0.098660178482533) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.145753592252731,-0.043920386582613,-0.071361452341080,-0.051725033670664,-0.021394807845354,-0.123108878731728,0.030649742111564,0.097610168159008,0.190325111150742,0.056019246578217,0.089013569056988,0.120540924370289,0.072475582361221,0.163391292095184,0.131231829524040,-0.087727852165699) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.006353934295475,-0.035264149308205,0.007798715494573,0.084091395139694,-0.001458345097490,0.010357875376940,-0.043932493776083,0.083470866084099,0.024789089336991,0.010717425495386,-0.103104986250401,0.009793417528272,-0.095080576837063,0.063931994140148,-0.097300827503204,-0.119186691939831) * MODEL10_texOff(vec2(1,1));
res += mat4(0.051635079085827,0.111344657838345,0.137544125318527,-0.050597526133060,-0.053361766040325,-0.025581941008568,0.115415632724762,-0.166846975684166,0.055640552192926,0.008776885457337,0.093615546822548,0.038485921919346,0.000772246043198,0.093892365694046,0.088091790676117,-0.129022002220154) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.098760820925236,0.154963821172714,-0.205539986491203,0.161613106727600,-0.003211529459804,-0.014989908784628,0.096409916877747,0.089712798595428,0.062037657946348,-0.080686569213867,0.138313084840775,-0.067178025841713,-0.117531880736351,-0.006047157570720,-0.147352069616318,0.172495871782303) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.009924593381584,0.083984643220901,0.066451705992222,-0.050380084663630,0.044177997857332,-0.194208160042763,-0.128119364380836,0.189983755350113,-0.003046381054446,-0.026985004544258,0.041718374937773,-0.016001960262656,0.040062040090561,-0.007552298717201,-0.056987900286913,-0.046636953949928) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.264999061822891,0.179232478141785,0.218854010105133,-0.021483225747943,-0.146056041121483,0.004714793991297,-0.141752600669861,-0.101765185594559,0.003299420932308,0.044228009879589,0.091243885457516,0.054664518684149,0.093468025326729,-0.011823291890323,0.147668331861496,-0.005276494659483) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.008538947440684,0.110167652368546,0.081263534724712,-0.144470259547234,0.511912405490875,-0.332476675510406,-0.088150247931480,0.333553165197372,-0.212749123573303,0.087726324796677,-0.317217260599136,-0.251755744218826,0.029654420912266,0.081652924418449,0.132104694843292,-0.179847821593285) * MODEL11_texOff(vec2(0,0));
res += mat4(0.039354667067528,0.062905050814152,0.160918205976486,0.054122883826494,0.073001503944397,-0.279474377632141,0.219691246747971,-0.048564087599516,0.151341661810875,-0.046673376113176,-0.099166683852673,-0.097239114344120,-0.047609973698854,-0.119606688618660,0.195052444934845,0.061186842620373) * MODEL11_texOff(vec2(0,1));
res += mat4(0.025226913392544,0.029694952070713,-0.097001016139984,0.044911529868841,-0.125048235058784,-0.104723997414112,-0.090393908321857,0.054955694824457,0.000958004733548,-0.013755331747234,0.070273637771606,-0.075103297829628,-0.003504643449560,-0.085988335311413,-0.024794116616249,-0.243122860789299) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.032343100756407,0.053240511566401,0.008150045759976,0.005761897191405,0.234118252992630,-0.108617052435875,0.007526821922511,-0.050934683531523,-0.078444793820381,-0.059659752994776,-0.182996362447739,0.135013043880463,0.078849487006664,0.012221510522068,0.108212932944298,-0.181538805365562) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.003165850415826,0.096097715198994,-0.046688243746758,0.005861754529178,-0.057882934808731,-0.188269436359406,-0.121317923069000,0.079581514000893,0.104728505015373,0.051870498806238,-0.000698240066413,0.073844589293003,-0.015230817720294,0.021095415577292,0.012194162234664,-0.026386294513941) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.031594950705767,-0.157179683446884,0.131892248988152,0.012480190023780,0.062818013131618,-0.015523663721979,-0.108133509755135,0.082608267664909,-0.079257428646088,0.055377285927534,-0.028127308934927,0.090861722826958,0.031477645039558,0.006048037670553,0.046445500105619,0.026223339140415) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.087670639157295,0.014795599505305,-0.011478395201266,-0.059740167111158,0.017986372113228,0.019967447966337,0.096589840948582,0.051490046083927,0.065105490386486,-0.222209081053734,0.161241069436073,-0.049703560769558,0.062026273459196,0.079782664775848,-0.107350379228592,-0.117568686604500) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.084059700369835,-0.037413462996483,-0.096011228859425,0.045763079077005,-0.012448475696146,-0.111803621053696,-0.002607346279547,0.107576288282871,0.041785467416048,-0.138152644038200,0.151465669274330,-0.173095852136612,0.000323398562614,0.076182633638382,-0.230383232235909,-0.015912560746074) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.210096880793571,-0.017723705619574,-0.116393707692623,0.026347506791353,-0.079254172742367,-0.058211557567120,0.013545789755881,-0.056719608604908,0.017838302999735,-0.153854176402092,-0.079983934760094,-0.054705977439880,-0.076844707131386,0.038112085312605,-0.041089348495007,0.048120636492968) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.111982680857182,0.120585687458515,0.065274350345135,-0.155937030911446,-0.008413926698267,-0.055080011487007,0.073414459824562,0.337518244981766,0.063861191272736,0.033232342451811,-0.298540443181992,-0.173677071928978,-0.131113350391388,0.032319657504559,-0.046131417155266,0.052166644483805) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.130668282508850,0.037208102643490,0.194530203938484,-0.395792961120605,-0.029348727315664,-0.007218824233860,-0.122752502560616,-0.029522132128477,-0.074618861079216,-0.200760737061501,-0.087316669523716,-0.031241631135345,-0.060828521847725,0.013752504251897,-0.331719964742661,-0.215727075934410) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.082278251647949,0.095362015068531,0.084217943251133,0.123560048639774,-0.072938531637192,-0.184109523892403,-0.030969098210335,0.122180864214897,-0.110145397484303,-0.027060937136412,-0.044891230762005,-0.031290981918573,0.045989442616701,-0.113390341401100,0.067219682037830,-0.108381316065788) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.203907698392868,-0.054278209805489,-0.037007391452789,-0.048674289137125,0.086852699518204,-0.162341058254242,-0.010806697420776,0.073783926665783,-0.133060380816460,0.140981033444405,0.086570337414742,-0.062084943056107,-0.040793474763632,-0.012756086885929,0.109091140329838,0.010719689540565) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.030562952160835,-0.064464017748833,-0.023160897195339,0.039355564862490,0.040017161518335,-0.035411674529314,-0.109309718012810,0.104560375213623,0.032402690500021,-0.047230549156666,0.101812928915024,0.021683799102902,0.086523190140724,-0.051281876862049,0.283735871315002,-0.071701206266880) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.164113521575928,-0.059742961078882,-0.002733963541687,0.106840439140797) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL4
//!DESC [AiUpscale_HQ_4x_Photo] mapping 7_4

vec4 hook()
{
vec4 res = vec4(-0.043845642358065,0.128731280565262,-0.139865100383759,-0.094052784144878);
res += mat4(-0.038382932543755,-0.050323188304901,-0.020297398790717,-0.036194026470184,0.097916193306446,-0.055674284696579,-0.124194435775280,0.008731674402952,-0.100376203656197,-0.032741099596024,-0.049047339707613,0.001460354076698,-0.214882805943489,-0.262596547603607,0.083353497087955,0.092854365706444) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.015707649290562,0.122787006199360,0.018726425245404,-0.044949289411306,-0.000693838112056,-0.095435380935669,0.100830599665642,-0.009717567823827,0.134995296597481,-0.171807467937469,-0.105091109871864,0.052191499620676,0.052354931831360,0.061007972806692,0.110632047057152,0.049784377217293) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.021762730553746,-0.015959015116096,-0.012907224707305,-0.014215033501387,0.022939013317227,-0.042530603706837,0.031544126570225,-0.034214925020933,-0.024025987833738,-0.031387176364660,-0.032901860773563,0.109766118228436,-0.026682438328862,0.067830197513103,-0.102816492319107,-0.049316879361868) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.013778884895146,-0.052655972540379,-0.069483928382397,-0.031832929700613,-0.034350670874119,0.114388763904572,0.142792403697968,0.016687251627445,0.076646611094475,-0.076071888208389,-0.248329848051071,0.036145318299532,-0.053961642086506,-0.014066504314542,0.036272995173931,0.064941465854645) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.097878955304623,-0.288014262914658,-0.013125508092344,-0.163568213582039,0.094599075615406,-0.302467763423920,0.035105351358652,-0.030580438673496,0.100459001958370,0.279411971569061,-0.207147777080536,-0.763907551765442,-0.085721231997013,0.048873972147703,0.103637956082821,0.101614341139793) * MODEL7_texOff(vec2(0,0));
res += mat4(0.238410934805870,0.094900600612164,0.045533094555140,-0.057473495602608,0.012133297510445,0.111990965902805,0.043971121311188,0.023065246641636,-0.058595076203346,-0.011097343638539,0.142163231968880,0.159713283181190,0.095884084701538,0.101444952189922,-0.129262611269951,-0.091388583183289) * MODEL7_texOff(vec2(0,1));
res += mat4(0.048797525465488,0.091768138110638,0.095057837665081,-0.016346517950296,0.002076665638015,-0.083384282886982,0.248604267835617,-0.014279329217970,-0.042553793638945,0.041379693895578,-0.012795912101865,0.009536040015519,0.044199597090483,-0.069934234023094,-0.052554570138454,0.069572076201439) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.081152878701687,0.258816629648209,0.123533047735691,-0.109552390873432,-0.028607200831175,-0.139176636934280,0.052477594465017,-0.034052211791277,-0.002411475172266,-0.158691853284836,0.124899081885815,0.048249740153551,-0.162194103002548,-0.055712826550007,0.054158102720976,0.047691017389297) * MODEL7_texOff(vec2(1,0));
res += mat4(0.079201616346836,0.064551614224911,-0.042507153004408,-0.032031748443842,-0.098531864583492,0.026426130905747,-0.048050437122583,-0.030091602355242,-0.012124326080084,-0.053085729479790,-0.030916659161448,0.104057095944881,0.038072541356087,0.076831109821796,-0.023744443431497,-0.044010318815708) * MODEL7_texOff(vec2(1,1));
res += mat4(0.055125072598457,-0.000938009063248,-0.044145021587610,-0.000915770826396,-0.059505648910999,0.117961376905441,0.018673310056329,-0.018245523795485,-0.049518927931786,0.145405262708664,0.233500421047211,0.025087187066674,-0.065058872103691,0.076770536601543,-0.080865308642387,-0.006158089730889) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.035575520247221,0.235733866691589,0.062700197100639,-0.051952406764030,0.040786325931549,-0.161783859133720,-0.073994144797325,-0.001634700922295,0.075090691447258,0.088003695011139,0.056597299873829,-0.017588313668966,0.093126989901066,0.024833133444190,0.012719104066491,-0.020405432209373) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.097772739827633,-0.065323971211910,0.039625898003578,-0.019875273108482,0.046744599938393,0.050543408840895,-0.004628737457097,0.004378701094538,0.015014555305243,0.129268422722816,-0.028770338743925,-0.021610036492348,0.075468003749847,-0.092429809272289,-0.070355318486691,-0.008633000776172) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.142258539795876,0.016202747821808,0.305946320295334,0.043372482061386,0.003397246124223,0.053213022649288,-0.236257821321487,-0.013498806394637,0.105800092220306,0.020483586937189,-0.087823309004307,-0.013847538270056,0.025755647569895,-0.007326617836952,-0.172226414084435,0.022790504619479) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.094824880361557,0.204242393374443,-0.280450820922852,0.003242344129831,0.070059947669506,-0.048612121492624,-0.011805997230113,0.008693456649780,0.252036452293396,0.112457506358624,0.278355300426483,0.010504152625799,0.204639926552773,-0.240811467170715,0.087377637624741,-0.012108027003706) * MODEL8_texOff(vec2(0,0));
res += mat4(0.010200279764831,0.300731241703033,-0.039353165775537,0.043380878865719,-0.093962222337723,0.033399421721697,0.164750337600708,0.007729680277407,0.067702703177929,0.162578120827675,-0.181218385696411,-0.038934029638767,0.087455347180367,0.051472183316946,-0.199883192777634,-0.036995735019445) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.160581871867180,-0.072073370218277,0.046252790838480,0.022296333685517,-0.056187957525253,0.039489209651947,0.097967393696308,-0.027506107464433,0.132319152355194,-0.038002613931894,0.198379650712013,0.000169295657543,0.027556559070945,0.048540476709604,-0.166705220937729,-0.007770298048854) * MODEL8_texOff(vec2(1,-1));
res += mat4(-0.021251235157251,0.070782706141472,-0.099580362439156,0.048090104013681,0.036016806960106,-0.066529706120491,0.108048141002655,-0.003872588975355,0.071057289838791,0.060638826340437,-0.062007173895836,0.013848791830242,0.096650347113609,-0.053524140268564,0.078605443239212,-0.006063482724130) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.001323488424532,-0.038333665579557,-0.024171099066734,0.019249374046922,-0.002428009174764,-0.004582956433296,0.005605004727840,0.029477555304766,-0.151736900210381,-0.005974932573736,0.154505029320717,0.010021014139056,0.048932284116745,-0.058796368539333,-0.160041183233261,-0.003235397860408) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.058335430920124,0.053704410791397,-0.133270129561424,-0.048123002052307,-0.079246319830418,0.000849625328556,0.142617046833038,-0.045165821909904,0.374364882707596,-0.040172126144171,0.012724922969937,-0.012648236937821,0.175708293914795,0.045329950749874,0.093557476997375,0.006710251793265) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.157208025455475,0.118455201387405,0.156911134719849,-0.101489506661892,-0.143646568059921,0.124385200440884,-0.561445951461792,0.023984454572201,0.125416323542595,0.041897617280483,-0.040471557527781,-0.049090288579464,0.121587187051773,0.029238304123282,-0.159312918782234,0.005637830123305) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.098234169185162,0.028362769633532,0.005187071859837,-0.107486352324486,-0.165914848446846,0.100613750517368,-0.058555968105793,0.016641816124320,0.045440211892128,0.007199276704341,0.111995436251163,-0.028607975691557,0.098362654447556,0.115876279771328,-0.015775846317410,-0.014026470482349) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.063242129981518,-0.065086126327515,-0.111048825085163,-0.020654624328017,-0.042505431920290,-0.012182915583253,0.001430353615433,0.002797805704176,0.340614199638367,-0.009878135286272,-0.018146600574255,0.042894057929516,0.080161638557911,0.051671031862497,0.104704678058624,0.006313671823591) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.126652985811234,-0.016838306561112,0.052425507456064,-0.006938282400370,-0.079507991671562,-0.072958223521709,-0.129671901464462,-0.001088661141694,0.115426436066628,0.033908132463694,0.053179930895567,0.069896072149277,0.077121250331402,0.041486106812954,-0.206142127513885,-0.079813808202744) * MODEL9_texOff(vec2(0,0));
res += mat4(0.086852669715881,0.110864944756031,-0.013413336127996,-0.072091177105904,-0.048947431147099,-0.055839121341705,-0.014806581661105,-0.014923634007573,-0.029191337525845,0.107719324529171,-0.036840904504061,0.070922806859016,-0.014157250523567,0.041117887943983,0.047258455306292,-0.026896875351667) * MODEL9_texOff(vec2(0,1));
res += mat4(0.063544631004333,0.071561411023140,-0.062502026557922,0.020986216142774,0.011559843085706,-0.007993609644473,-0.038107287138700,0.006546363234520,0.075429879128933,0.047384094446898,0.181488007307053,0.073212213814259,-0.013238198123872,0.030854545533657,0.070474714040756,-0.037232391536236) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.102239012718201,-0.030142746865749,0.143996492028236,0.045944690704346,-0.051108859479427,-0.009484496898949,0.039277825504541,0.002839865395799,0.253277301788330,0.208324670791626,-0.234100222587585,0.053055495023727,-0.004993340466172,0.001807189779356,-0.053998012095690,-0.005888257175684) * MODEL9_texOff(vec2(1,0));
res += mat4(0.050340712070465,-0.019128372892737,-0.028460441157222,0.020333115011454,-0.050152689218521,0.076779410243034,0.055293858051300,0.001334843575023,-0.071642965078354,0.100617058575153,-0.012909663841128,-0.012388969771564,-0.029988763853908,-0.009515696205199,0.027063226327300,0.012829371728003) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.041982069611549,-0.098530173301697,0.039228901267052,0.041699744760990,0.177856385707855,0.093492537736893,0.245606407523155,0.005595330614597,0.052373945713043,-0.037580665200949,-0.008392685092986,0.013142172247171,-0.152396664023399,0.099066354334354,0.114650748670101,-0.011491568759084) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.183225423097610,-0.086451083421707,-0.067155234515667,0.109756730496883,-0.005308670923114,-0.376362234354019,0.119594275951385,-0.105611078441143,-0.068044841289520,-0.123252905905247,0.030780114233494,0.069731354713440,-0.141318693757057,-0.181422770023346,0.138704106211662,0.015206601470709) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.004300651606172,-0.004069504328072,0.071114540100098,0.056071206927299,-0.164156273007393,0.047817777842283,-0.015096614137292,-0.062088061124086,-0.040633872151375,-0.046447034925222,-0.061389915645123,0.003161262255162,-0.141211584210396,-0.069050952792168,0.016667794436216,0.001088046701625) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.095029175281525,0.134115278720856,-0.110860079526901,0.010869141668081,0.086079217493534,0.015816524624825,-0.153320044279099,0.008286907337606,0.038928307592869,0.139474391937256,-0.056921839714050,0.012022248469293,-0.107093416154385,-0.005198553204536,-0.100418679416180,-0.000746380595956) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.012806732207537,-0.300836056470871,0.083185136318207,-0.366729766130447,-0.325201988220215,-0.135801225900650,0.168339475989342,0.130163818597794,-0.009511385113001,0.082995697855949,-0.236343652009964,0.064392387866974,-0.075036004185677,-0.229511320590973,0.469621449708939,-0.043107744306326) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.157909080386162,-0.019404945895076,-0.009572001174092,0.133257687091827,-0.127860486507416,-0.045373965054750,0.160873115062714,-0.030994221568108,0.039538569748402,0.029931535944343,-0.038038458675146,0.019227975979447,0.005681112874299,0.044262658804655,-0.146795436739922,-0.029069727286696) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.003783705877140,0.098931536078453,0.020951684564352,-0.004227957688272,0.025000253692269,-0.036652315407991,0.024677352979779,0.038213972002268,0.077777206897736,0.064187221229076,0.135048031806946,-0.013605717569590,0.039970651268959,0.053520571440458,0.013842816464603,-0.001487536588684) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.080820731818676,-0.020721545442939,0.136087164282799,0.062231466174126,-0.028590990230441,0.051706526428461,-0.060893837362528,0.018645271658897,-0.002134901704267,0.005658469162881,0.052307404577732,-0.031318251043558,-0.165628254413605,-0.027722533792257,0.150473445653915,-0.049143839627504) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.013988845981658,-0.043188512325287,-0.067477352917194,-0.036528892815113,-0.008365894667804,-0.043258901685476,0.029886737465858,0.002946627093479,-0.043850857764482,0.107251159846783,0.016572952270508,-0.016469439491630,-0.098911158740520,0.061514083296061,0.132153034210205,-0.000118576033856) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.004573835991323,0.023554464802146,-0.056919910013676,-0.054884035140276,0.162984445691109,0.033810328692198,-0.108872786164284,-0.030193276703358,-0.033234842121601,-0.031670473515987,0.063080616295338,-0.031789105385542,0.101967938244343,0.028275301679969,-0.002905244706199,-0.031355515122414) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.317944914102554,0.092238813638687,0.077156096696854,-0.051798544824123,-0.089173883199692,0.013398165814579,-0.100646920502186,0.000971848377958,0.027957729995251,0.038488008081913,-0.086540572345257,-0.053727012127638,-0.286582082509995,0.320163160562515,0.018394935876131,-0.038831841200590) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.019809009507298,-0.037452034652233,0.003639636794105,-0.045783944427967,0.196455225348473,-0.047029219567776,0.019857171922922,0.081970810890198,0.026496160775423,0.035256754606962,0.108330741524696,-0.026773635298014,0.015277099795640,-0.033284600824118,-0.045301645994186,-0.032592233270407) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.033941347151995,-0.302235215902328,0.054914101958275,0.022000549361110,0.099486745893955,-0.024254009127617,0.291192501783371,-0.017568960785866,-0.041524820029736,0.149506583809853,-0.100366659462452,-0.075802162289619,-0.268271297216415,-0.179407373070717,-0.127710700035095,0.058786451816559) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.593553543090820,-0.434988886117935,0.029303137212992,0.029982451349497,-0.056307647377253,0.063434787094593,0.084973096847534,0.057766672223806,0.005221932195127,0.155397072434425,-0.527333498001099,0.015806486830115,-0.114432610571384,-0.261324912309647,-0.106057159602642,0.012267345562577) * MODEL11_texOff(vec2(0,0));
res += mat4(0.056666504591703,-0.091524325311184,-0.016183622181416,-0.004438664298505,-0.079917520284653,-0.423569142818451,0.003798127407208,0.136783152818680,-0.105079419910908,-0.004472204949707,0.191189482808113,-0.019958807155490,-0.001639807946049,-0.013163381256163,-0.070973552763462,0.003561106976122) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.080981299281120,-0.049093276262283,-0.075130462646484,0.063486143946648,-0.021534217521548,-0.081280782818794,0.006043136119843,-0.018957648426294,0.094616830348969,-0.001700244261883,-0.045438587665558,-0.006297013722360,-0.036927841603756,0.007881063036621,-0.020634362474084,0.099177852272987) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.102981798350811,-0.003954412881285,0.016694502905011,0.064049407839775,0.093173325061798,0.134416267275810,-0.037670712918043,0.014417309314013,0.022940775379539,0.010595929808915,0.028789026662707,-0.015588633716106,0.007817659527063,-0.160560950636864,-0.168641537427902,0.180680528283119) * MODEL11_texOff(vec2(1,0));
res += mat4(0.042942710220814,0.032161936163902,-0.082997761666775,0.018435353413224,0.029379218816757,-0.032295428216457,-0.005934186745435,0.041959699243307,-0.038106497377157,-0.079797171056271,-0.009575969539583,0.002454989822581,-0.270617842674255,-0.018831048160791,0.031401842832565,0.069800138473511) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.160103335976601,-0.030682677403092,0.118788406252861,0.027289714664221,0.081161133944988,0.054846715182066,-0.060592729598284,-0.006232650484890,-0.048412013798952,-0.009540301747620,0.109440699219704,0.039431940764189,-0.129427686333656,0.033463932573795,0.033013541251421,-0.006568518467247) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.112677313387394,-0.079430915415287,-0.196099385619164,0.012473313137889,0.079113565385342,-0.103718869388103,-0.010641696862876,0.028612932190299,-0.199687242507935,0.002523356117308,-0.029847037047148,0.077487953007221,0.144714325666428,0.070729389786720,0.035856682807207,0.016853885725141) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.012317281216383,0.059395018965006,0.047304034233093,-0.004674539435655,0.067396715283394,0.106430895626545,-0.035958778113127,0.040353424847126,-0.088183902204037,0.073292441666126,-0.018772030249238,0.053439557552338,-0.160580977797508,0.251500248908997,-0.079004630446434,-0.012318138033152) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.291620641946793,0.089859738945961,-0.370148539543152,-0.021734980866313,0.119417913258076,-0.049952872097492,0.024959802627563,-0.037315249443054,-0.022979764267802,-0.031624801456928,0.091491170227528,0.071367144584656,0.047992628067732,0.049649391323328,-0.187138438224792,-0.002899575512856) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.083982318639755,-0.189061537384987,-0.218313455581665,0.014246582053602,-0.182385176420212,0.032368920743465,-0.196475848555565,-0.002317685633898,-0.202348038554192,-0.000054161340813,-0.111423134803772,0.024396421387792,0.058381438255310,-0.013959459960461,0.062722280621529,0.046570748090744) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.288960039615631,0.052311342209578,-0.213181942701340,-0.004860182292759,-0.200628086924553,-0.095763966441154,0.234787568449974,0.019937431439757,-0.085050620138645,-0.208802774548531,0.072220206260681,0.000626485270914,0.138977646827698,0.054734751582146,0.018360432237387,0.009192121215165) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.003539969911799,-0.049574911594391,-0.176922082901001,0.004528953693807,-0.020779000595212,0.005852160509676,0.032038092613220,0.050623197108507,-0.032054714858532,0.096891164779663,0.014841608703136,0.014237405732274,0.015212871134281,0.026835516095161,-0.118665203452110,0.028938191011548) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.045521218329668,-0.086673982441425,-0.040169671177864,0.019911831244826,-0.059395965188742,0.050840038806200,-0.117455646395683,0.096565119922161,-0.026332050561905,0.061302300542593,-0.007268542423844,-0.031331595033407,-0.057829510420561,-0.172167778015137,0.166600331664085,0.023705499246716) * MODEL12_texOff(vec2(1,0));
res += mat4(0.019905585795641,0.021003246307373,-0.082896620035172,0.024450154975057,0.013420245610178,-0.017094304785132,-0.063706636428833,0.070705264806747,-0.062585361301899,0.097681939601898,-0.152518883347511,-0.030022516846657,0.004001965746284,-0.124998256564140,-0.173586368560791,0.022828180342913) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.001838626456447,0.040865577757359,0.037912093102932,0.799887180328369) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL5
//!DESC [AiUpscale_HQ_4x_Photo] mapping 7_5

vec4 hook()
{
vec4 res = vec4(-0.057376932352781,0.004692503251135,-0.300770759582520,-0.070925034582615);
res += mat4(-0.055390156805515,-0.040854062885046,-0.158670917153358,0.092165112495422,0.261894315481186,0.217686742544174,0.142854452133179,-0.000082512298832,-0.001835281262174,-0.115147516131401,0.084329895675182,0.016914695501328,-0.066321015357971,0.052601959556341,0.040178179740906,0.028207771480083) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.004549417644739,0.041760951280594,-0.157484948635101,0.020038738846779,0.020982580259442,0.168769821524620,-0.078649178147316,0.017593819648027,-0.134626328945160,0.058593120425940,0.145406007766724,-0.024132885038853,0.046682998538017,-0.237294599413872,0.086459837853909,0.000018048400307) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.019397072494030,0.025698052719235,0.001916768262163,0.000525371870026,0.024776617065072,0.137217089533806,0.116684682667255,-0.025507235899568,-0.000086543208454,-0.085176937282085,0.069307647645473,-0.051187306642532,-0.020978521555662,0.027083801105618,0.089714735746384,0.087559349834919) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.092204473912716,-0.119262322783470,0.017661621794105,0.020004175603390,0.250569462776184,0.023617500439286,0.073644332587719,-0.006507563870400,0.003064487827942,0.117455177009106,0.034184187650681,-0.020660826936364,0.072733812034130,0.129925757646561,0.086591891944408,-0.079565368592739) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.004907481838018,0.256300747394562,0.390312939882278,0.008917619474232,-0.131835371255875,0.034745328128338,-0.189196735620499,-0.004742415621877,-0.441919833421707,-0.323473066091537,-0.437431722879410,0.306028246879578,0.357432216405869,-0.152707725763321,-0.107201740145683,-0.127510368824005) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.024913338944316,0.017437139526010,0.009614542126656,0.157363519072533,-0.017077373340726,0.276941329240799,-0.166300892829895,0.044591628015041,0.222923696041107,-0.018425997346640,-0.134971961379051,-0.138004556298256,-0.201385915279388,-0.068515464663506,-0.061626795679331,0.127338811755180) * MODEL7_texOff(vec2(0,1));
res += mat4(0.181140214204788,0.078730717301369,-0.119430996477604,0.115728348493576,-0.014456587843597,0.136446833610535,0.030028404667974,-0.005252189468592,0.047423448413610,0.028644826263189,-0.033735118806362,-0.040135227143764,0.000568996358197,0.091048590838909,0.178277552127838,0.027275275439024) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.060308452695608,-0.146565198898315,-0.069861069321632,0.070418708026409,-0.033023230731487,0.025010759010911,-0.185711756348610,0.117069520056248,-0.196185603737831,0.014973106794059,-0.036767099052668,0.172182798385620,0.120614014565945,-0.035647053271532,0.048958510160446,-0.181399568915367) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.104850165545940,0.110672749578953,0.000850089068990,0.131591200828552,-0.067881874740124,-0.008933329954743,0.042628992348909,-0.007480097468942,0.063424378633499,0.060300868004560,0.014741769991815,-0.035433899611235,-0.041316173970699,0.045568060129881,0.053493715822697,0.041509330272675) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.029806083068252,0.029845511540771,0.022792181000113,-0.070444166660309,0.010216666385531,-0.209243878722191,-0.028434019535780,0.097570680081844,0.001083814422600,0.137858361005783,-0.088668830692768,0.051155380904675,-0.018156951293349,-0.099077880382538,-0.031080851331353,0.001064642448910) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.009988397359848,-0.318151742219925,-0.017133949324489,0.057710897177458,-0.077496401965618,0.059481956064701,0.132746428251266,0.038582682609558,0.053802557289600,-0.067714892327785,-0.044467188417912,0.021282583475113,-0.139468878507614,-0.177241176366806,-0.172321453690529,-0.028061972931027) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.102984651923180,0.078577190637589,0.028154661878943,0.041533850133419,-0.012185507453978,-0.134553447365761,-0.077185496687889,0.087535768747330,-0.018150938674808,0.095745518803596,-0.063097454607487,-0.000901161925867,-0.045102056115866,-0.079124525189400,0.031208068132401,-0.057168759405613) * MODEL8_texOff(vec2(-1,1));
res += mat4(-0.343296647071838,-0.280864149332047,-0.003356965025887,0.077085509896278,0.205339998006821,0.061934143304825,-0.309886157512665,0.211067780852318,-0.062938645482063,0.211961716413498,0.130622461438179,-0.026560926809907,0.161721602082253,0.089283846318722,-0.014519499614835,-0.051898177713156) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.009995591826737,0.000638459576294,-0.282532542943954,0.197202503681183,-0.475437372922897,0.418740451335907,0.187809318304062,0.042091764509678,0.189458400011063,-0.073626615107059,-0.029368920251727,-0.006894558668137,-0.014144700951874,-0.144574731588364,0.176707699894905,-0.173290625214577) * MODEL8_texOff(vec2(0,0));
res += mat4(0.103543341159821,-0.118804007768631,-0.014768198132515,-0.015897214412689,0.151482731103897,-0.306674152612686,-0.081410907208920,-0.037596426904202,-0.060123123228550,-0.055886238813400,-0.030216863378882,0.132568776607513,-0.178974881768227,-0.025222275406122,0.153414815664291,0.019046239554882) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.192608013749123,-0.168538361787796,0.123956300318241,0.028499551117420,0.189435601234436,-0.082688175141811,-0.019266700372100,0.159408599138260,0.101998522877693,0.090730153024197,0.055411718785763,0.019178552553058,-0.037501484155655,-0.108199797570705,0.043762609362602,-0.025169888511300) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.047093290835619,-0.007893303409219,0.109564378857613,0.004074099473655,-0.174468353390694,0.011020633392036,-0.103723205626011,0.143323615193367,-0.014545356854796,0.132842406630516,0.117124535143375,0.102077357470989,-0.077694192528725,-0.159845396876335,-0.093527227640152,-0.152978822588921) * MODEL8_texOff(vec2(1,0));
res += mat4(0.129610449075699,0.017673762515187,-0.001279268995859,0.005467359907925,0.052358601242304,-0.036162249743938,0.063120067119598,0.029838405549526,0.079782888293266,-0.127609342336655,-0.008318708278239,-0.141874223947525,-0.106150858104229,-0.175364643335342,-0.100775018334389,0.018371567130089) * MODEL8_texOff(vec2(1,1));
res += mat4(0.096547596156597,0.032549839466810,0.031512454152107,0.041113194078207,-0.306965500116348,-0.107058316469193,-0.033043146133423,-0.037996277213097,0.138788253068924,0.006053223274648,-0.056139990687370,-0.160278543829918,-0.068653546273708,-0.126819401979446,-0.015325832180679,0.055677384138107) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.118114411830902,-0.098902404308319,-0.054512284696102,-0.023291571065784,0.216772258281708,-0.249399632215500,-0.155463844537735,0.073154762387276,-0.049480624496937,0.084716640412807,0.215717867016792,0.084265276789665,-0.105121321976185,0.011350525543094,0.020561480894685,0.014468854293227) * MODEL9_texOff(vec2(-1,0));
res += mat4(0.020916979759932,0.228037029504776,0.076466038823128,-0.039019428193569,0.059917699545622,0.066296435892582,-0.030700800940394,0.017537260428071,0.002189115853980,-0.090934872627258,0.108107984066010,0.015462638810277,-0.074756503105164,-0.013253461569548,-0.025911167263985,0.007527646142989) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.046912781894207,-0.006044459063560,0.077516138553619,0.072863273322582,-0.125488638877869,0.018985321745276,-0.066020682454109,0.027323676273227,0.069106519222260,0.006433880422264,0.027150724083185,-0.056513682007790,-0.016980513930321,-0.146542370319366,0.011215222068131,-0.124692045152187) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.021641369909048,-0.151576846837997,0.011973340995610,-0.249840393662453,0.138518229126930,0.158786535263062,0.060227233916521,-0.093844234943390,-0.205354556441307,-0.013149578124285,0.000484215794131,0.051711510866880,-0.054143540561199,-0.036428634077311,-0.071598798036575,0.466485798358917) * MODEL9_texOff(vec2(0,0));
res += mat4(0.019536867737770,0.139077737927437,-0.108629882335663,-0.020231302827597,-0.033262640237808,-0.060110978782177,-0.000665018102154,0.096698358654976,0.049765232950449,-0.024816369637847,-0.095805905759335,-0.088441349565983,0.047176435589790,0.010992850176990,0.004837586078793,0.023271655663848) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.101986072957516,0.051114175468683,0.190788239240646,0.064669288694859,-0.049353267997503,-0.055129490792751,-0.039008699357510,0.094092167913914,-0.108884282410145,-0.050777252763510,-0.179910913109779,-0.026292307302356,-0.038965530693531,-0.059864141047001,-0.035967573523521,-0.040418017655611) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.070077843964100,-0.156173780560493,0.037220161408186,0.002085732761770,0.011754230596125,-0.053801696747541,-0.191865012049675,0.107097886502743,-0.019355457276106,0.018649708479643,-0.047703422605991,0.110598720610142,-0.041073169559240,0.010695938952267,0.048577077686787,0.019735107198358) * MODEL9_texOff(vec2(1,0));
res += mat4(0.091978862881660,0.065507404506207,0.096696339547634,0.026751313358545,-0.021058943122625,0.093368120491505,-0.048009686172009,0.157251030206680,0.102422364056110,-0.040370281785727,0.023154674097896,-0.074293799698353,-0.011359874159098,-0.058529466390610,-0.071081005036831,0.088950939476490) * MODEL9_texOff(vec2(1,1));
res += mat4(0.008619901724160,0.095757097005844,0.284831404685974,-0.029957540333271,0.073673188686371,-0.042983349412680,-0.139733806252480,-0.082685865461826,0.062643416225910,-0.071386553347111,0.130937203764915,-0.084747068583965,0.061703227460384,-0.029796751216054,-0.009127276018262,-0.047316748648882) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.018353477120399,0.175891086459160,0.263959318399429,0.134246930480003,0.024900503456593,-0.008898917585611,-0.035889115184546,0.017842696979642,-0.107517287135124,-0.156496286392212,0.244511380791664,-0.047645159065723,0.095443047583103,0.064376376569271,0.167460978031158,-0.077766016125679) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.032249454408884,-0.053401641547680,0.063351057469845,0.031266581267118,-0.093636482954025,-0.027031596750021,-0.015984565019608,0.029652111232281,0.015101936645806,0.099333256483078,0.117595687508583,-0.095303870737553,-0.090667448937893,0.112785018980503,0.157358378171921,0.004108741879463) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.346971571445465,0.042952038347721,-0.041571035981178,0.033861782401800,-0.139510110020638,0.199202343821526,-0.059465650469065,-0.169285759329796,-0.328307569026947,-0.035026244819164,0.103911265730858,-0.005867212545127,0.211658552289009,0.092186927795410,0.026966061443090,0.015947615727782) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.308611184358597,-0.030074810609221,-0.232046589255333,0.103007487952709,0.049500375986099,-0.052916146814823,-0.384623795747757,-0.524849355220795,0.014709725975990,0.031961817294359,0.160944998264313,-0.052645564079285,0.166864246129990,0.054781630635262,-0.064020395278931,-0.011831963434815) * MODEL10_texOff(vec2(0,0));
res += mat4(0.047585692256689,0.005960315465927,-0.001910935156047,0.113438203930855,0.069008953869343,-0.085737258195877,-0.115481160581112,-0.051834307610989,0.044749468564987,0.101628765463829,0.212478756904602,-0.018345780670643,-0.198747262358665,0.078082159161568,-0.070808820426464,0.173466488718987) * MODEL10_texOff(vec2(0,1));
res += mat4(0.143603876233101,0.131247296929359,0.011650165542960,0.002541802125052,0.026596449315548,0.032132599502802,0.020290497690439,-0.031444277614355,0.135981559753418,0.075323216617107,-0.033922079950571,-0.036308329552412,0.019188284873962,0.055232699960470,-0.018709804862738,-0.067999199032784) * MODEL10_texOff(vec2(1,-1));
res += mat4(-0.076951473951340,0.041284590959549,-0.224543303251266,0.282955378293991,0.002516888314858,0.019586825743318,-0.121844790875912,0.025769609957933,-0.151962518692017,0.108262501657009,-0.042043041437864,-0.029612034559250,-0.046857621520758,0.016478506848216,0.033042579889297,-0.176098570227623) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.082024499773979,-0.044338148087263,0.035434503108263,0.030157515779138,-0.025621365755796,-0.010411733761430,-0.074186474084854,0.012813525274396,0.028063472360373,-0.110984839498997,-0.030219973996282,-0.117545805871487,-0.029440782964230,-0.035818967968225,-0.064851939678192,0.097450479865074) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.006021006032825,-0.154877975583076,-0.101424977183342,0.051469434052706,0.114032708108425,0.046095203608274,-0.048112429678440,0.009926104918122,0.022821970283985,0.060209721326828,-0.020428255200386,0.068734966218472,-0.056357517838478,0.075413025915623,-0.037230294197798,-0.042902927845716) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.057757858186960,-0.038118742406368,-0.151694700121880,0.073801621794701,0.048286318778992,0.311990588903427,0.295415014028549,-0.015025798231363,0.016631735488772,-0.080340355634689,-0.037200190126896,0.062841720879078,0.023524910211563,-0.067511923611164,-0.161907657980919,0.000587582821026) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.006314876955003,0.013087516650558,0.015256335027516,-0.016693778336048,-0.086327932775021,-0.025830239057541,-0.018606970086694,0.074405126273632,0.025412810966372,-0.092256948351860,0.012561136856675,0.024424446746707,0.022964255884290,0.092130362987518,0.037821158766747,-0.023209204897285) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.195059895515442,0.069263510406017,0.228486493229866,-0.202689573168755,-0.001402016845532,-0.182689666748047,-0.072045326232910,-0.005912838038057,-0.180658295750618,0.148238435387611,-0.210654079914093,0.136107355356216,0.014019630849361,0.089136593043804,0.254615545272827,0.067981079220772) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.124212332069874,-0.367959022521973,0.108964890241623,-0.216624304652214,0.123127497732639,0.108619332313538,-0.114859655499458,-0.289620608091354,-0.074727088212967,-0.238421469926834,-0.058743394911289,0.215341284871101,-0.009301084093750,0.006806623656303,-0.052035223692656,0.016739638522267) * MODEL11_texOff(vec2(0,0));
res += mat4(0.013036773540080,-0.030341563746333,0.069408580660820,0.005237321835011,-0.024656603112817,-0.034750625491142,0.033173158764839,0.140238001942635,0.158143714070320,-0.006323966663331,-0.083663485944271,-0.018482321873307,-0.002274369355291,-0.021847622469068,0.196122854948044,-0.009227327071130) * MODEL11_texOff(vec2(0,1));
res += mat4(0.017135486006737,-0.071973234415054,-0.208824202418327,-0.031845107674599,0.035119935870171,-0.071233600378036,-0.005172174889594,-0.048121612519026,-0.040100675076246,-0.033141653984785,0.103895731270313,0.093301214277744,0.078970864415169,-0.089336737990379,0.133674964308739,-0.068167172372341) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.129565447568893,0.039091613143682,-0.070623867213726,0.087554894387722,0.035212438553572,0.112572140991688,-0.016938433051109,-0.049560848623514,0.055759936571121,-0.013214177452028,0.128046125173569,0.237847015261650,0.008295717649162,0.096235185861588,-0.075662679970264,-0.342905133962631) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.016629775986075,-0.024139473214746,0.044828817248344,0.013869088143110,-0.090423718094826,0.001666360883974,-0.061793901026249,0.006763976532966,-0.016485430300236,0.007485718932003,0.119237571954727,0.045042045414448,-0.019509155303240,0.002744694240391,0.014370268210769,-0.037882298231125) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.099908843636513,0.068556860089302,0.003572107991204,0.028028599917889,0.021920651197433,-0.094061523675919,-0.073979012668133,-0.039508327841759,-0.050566673278809,-0.050293251872063,0.151073023676872,0.050966784358025,0.058118589222431,0.036485955119133,-0.024907428771257,0.010974319651723) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.023402925580740,0.022127473726869,-0.063775457441807,0.060700237751007,-0.009864045307040,0.064063698053360,0.151313066482544,-0.029506104066968,0.036416750401258,0.332418411970139,0.236453503370285,-0.021011058241129,-0.105409078299999,-0.066444553434849,-0.054193187505007,0.006325513124466) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.106493845582008,-0.211152717471123,-0.051651265472174,-0.042019408196211,-0.024356473237276,-0.186620160937309,0.033752076327801,0.019044892862439,0.190201088786125,-0.044922549277544,0.071013376116753,-0.006124869920313,0.110502071678638,-0.305485129356384,0.065717771649361,0.075673304498196) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.094264879822731,-0.051999870687723,-0.120988689363003,0.121287249028683,0.085990950465202,-0.090850807726383,0.062599807977676,0.064985223114491,0.005909738596529,-0.042123638093472,-0.067458897829056,-0.089924260973930,0.051982399076223,0.033010013401508,0.043153531849384,0.230476930737495) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.117657244205475,0.032851733267307,0.203615605831146,-0.128587052226067,-0.170434504747391,0.170601293444633,0.097708940505981,0.198387861251831,0.026347350329161,-0.251128435134888,0.000243716145633,-0.121659755706787,-0.169635951519012,-0.030260555446148,-0.042445711791515,0.010037067346275) * MODEL12_texOff(vec2(0,0));
res += mat4(0.188418149948120,-0.261288106441498,-0.044728580862284,-0.053305406123400,0.040543898940086,-0.231978088617325,-0.008173854090273,-0.046705957502127,0.145796105265617,0.083992585539818,0.167941972613335,0.042246952652931,0.242364004254341,-0.239470809698105,-0.238553732633591,0.204452663660049) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.087200902402401,0.049071297049522,0.085809350013733,0.086024813354015,0.009676353074610,-0.069666005671024,-0.062372103333473,0.017899902537465,-0.065049931406975,0.078611612319946,-0.149452283978462,0.034353531897068,0.146645545959473,0.065368041396141,0.032024905085564,0.037531092762947) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.112319551408291,0.028805505484343,0.046424578875303,0.089107982814312,-0.015598909929395,-0.053272254765034,-0.146985679864883,-0.003607210703194,0.071096554398537,0.017572304233909,0.088763087987900,-0.083064258098602,-0.013460605405271,0.021875962615013,0.099135853350163,-0.130490198731422) * MODEL12_texOff(vec2(1,0));
res += mat4(0.226864024996758,0.012759866192937,-0.045351278036833,-0.020461181178689,-0.067914232611656,-0.063026472926140,-0.116293676197529,0.029319841414690,-0.016557086259127,0.097185984253883,-0.059540599584579,-0.030258154496551,-0.094365738332272,0.175204902887344,0.098992407321930,0.013089264743030) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(-0.056862231343985,-0.094670034945011,0.329960703849792,-0.110487788915634) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE MODEL6
//!DESC [AiUpscale_HQ_4x_Photo] mapping 7_6

vec4 hook()
{
vec4 res = vec4(-0.219524204730988,-0.057484600692987,0.164831519126892,-0.302457720041275);
res += mat4(-0.003958974499255,-0.031746134161949,0.040565740317106,-0.055370829999447,0.077620685100555,-0.056696120649576,0.071058429777622,0.051617413759232,0.023668831214309,0.104838781058788,0.032585289329290,0.014546130783856,0.115181662142277,0.102658145129681,-0.041972111910582,-0.041583821177483) * MODEL7_texOff(vec2(-1,-1));
res += mat4(-0.091174803674221,-0.079272367060184,0.012302309274673,0.069202840328217,-0.026784598827362,-0.051375288516283,-0.074266523122787,-0.076263062655926,-0.119269326329231,0.159336790442467,0.074773125350475,-0.071198500692844,0.302063912153244,-0.128451466560364,-0.121595948934555,-0.128776311874390) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.020834164693952,-0.034565359354019,0.010682152584195,0.008863468654454,0.105811499059200,-0.005967878736556,-0.021968228742480,-0.099073670804501,0.028153069317341,-0.134641006588936,-0.008102516643703,0.011607239954174,-0.071896046400070,0.162852659821510,0.064210414886475,0.011799747124314) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.013451743870974,0.092056833207607,0.005415592808276,0.135106384754181,-0.151812523603439,-0.000946357962675,-0.139765024185181,-0.074646629393101,0.155071452260017,-0.142067208886147,-0.148628666996956,-0.088968902826309,0.190889731049538,-0.136376500129700,0.033405352383852,-0.087143950164318) * MODEL7_texOff(vec2(0,-1));
res += mat4(-0.079293884336948,0.357563525438309,0.017016535624862,0.075379826128483,0.100850142538548,0.034898106008768,0.050389084964991,0.116745211184025,-0.377092361450195,0.117307730019093,0.064696855843067,0.424653559923172,0.342369586229324,0.085349395871162,-0.046481121331453,-0.216122016310692) * MODEL7_texOff(vec2(0,0));
res += mat4(0.180573672056198,0.009911147877574,0.003296509152278,0.191678941249847,-0.023139713332057,-0.004688421729952,0.032140757888556,-0.126961603760719,0.267595589160919,0.075494825839996,-0.094377420842648,-0.149353384971619,-0.070986136794090,-0.019668858498335,0.052183717489243,0.157308369874954) * MODEL7_texOff(vec2(0,1));
res += mat4(0.096739716827869,0.001575103844516,0.123601742088795,-0.069815628230572,-0.065649367868900,-0.086342550814152,-0.037673797458410,-0.031432483345270,-0.021907044574618,-0.030539965257049,0.001061530201696,-0.053342267870903,0.084186255931854,-0.062791258096695,0.032681372016668,-0.099555544555187) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.425777673721313,-0.011208035051823,-0.064716503024101,0.232003271579742,0.053847745060921,-0.168228387832642,-0.042039141058922,-0.029875427484512,-0.019776389002800,-0.220565468072891,-0.060574084520340,-0.134485125541687,0.120255596935749,0.179528087377548,0.016841646283865,-0.000805689604022) * MODEL7_texOff(vec2(1,0));
res += mat4(0.049462828785181,0.041146464645863,0.042168710380793,0.175867959856987,-0.108339585363865,0.024275181815028,0.100919499993324,0.031313851475716,0.064074650406837,0.064118415117264,0.014027131721377,-0.063789851963520,-0.055458426475525,-0.087907545268536,-0.001076433458365,0.009355249814689) * MODEL7_texOff(vec2(1,1));
res += mat4(0.153401449322701,-0.115377649664879,-0.087577037513256,-0.018021620810032,0.001197112258524,-0.005018895026296,-0.076361328363419,0.011372725479305,0.175260454416275,0.030925557017326,0.006010950542986,0.073283858597279,-0.019392220303416,0.103595353662968,-0.105956718325615,0.027684535831213) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.162008881568909,0.003840776858851,-0.077373661100864,0.147716328501701,-0.071412824094296,0.089444063603878,-0.149268671870232,-0.105050310492516,0.196735203266144,-0.146369293332100,-0.086131379008293,-0.008393812924623,0.104222401976585,0.241185903549194,-0.105454228818417,-0.011744486168027) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.061605658382177,0.215396881103516,0.061463065445423,0.116117678582668,-0.034277819097042,-0.058766044676304,-0.054828248918056,-0.002115530660376,0.072028540074825,-0.097761020064354,-0.020082809031010,0.040463846176863,0.008655951358378,0.167818248271942,0.023432856425643,-0.085794597864151) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.160710439085960,0.077894747257233,-0.052475992590189,-0.037047725170851,-0.013488983735442,-0.190899223089218,0.128458335995674,0.006354196462780,0.064407467842102,0.002097720280290,-0.031845293939114,0.103068098425865,0.168945819139481,0.028451690450311,0.081947207450867,0.069470152258873) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.244431614875793,-0.136478289961815,0.132113844156265,0.122759245336056,-0.384647667407990,0.051179144531488,-0.126858904957771,-0.127142846584320,0.248179718852043,0.074172236025333,-0.034091562032700,-0.141107648611069,-0.083596341311932,0.390109091997147,-0.166349679231644,-0.282560378313065) * MODEL8_texOff(vec2(0,0));
res += mat4(-0.142825365066528,-0.094013772904873,-0.074596837162971,0.206915050745010,0.450039356946945,0.052538461983204,0.071080893278122,-0.016765462234616,-0.082067593932152,-0.090191617608070,-0.088093131780624,0.099147647619247,-0.161747246980667,0.128909662365913,-0.157109752297401,-0.061065103858709) * MODEL8_texOff(vec2(0,1));
res += mat4(0.152094423770905,0.122097350656986,-0.051090598106384,-0.023567339405417,-0.158015027642250,0.026181850582361,-0.048871327191591,0.141172930598259,0.049868874251842,0.071831211447716,0.039987090975046,-0.048357088118792,-0.065229058265686,0.102831639349461,-0.022291166707873,-0.011262508109212) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.009860374033451,-0.065406583249569,-0.048120133578777,-0.029191834852099,0.049958113580942,-0.158358499407768,0.098094403743744,0.016320388764143,0.147025451064110,-0.207916781306267,-0.042642574757338,-0.003366178134456,-0.024571616202593,0.031825590878725,-0.163684889674187,-0.098274335265160) * MODEL8_texOff(vec2(1,0));
res += mat4(0.018785057589412,-0.066364929080009,-0.059067022055387,0.013199046254158,0.048796135932207,0.059452041983604,-0.011802556924522,-0.034647744148970,0.314306974411011,0.047366939485073,0.005279462318867,-0.258484423160553,-0.006884472444654,0.057393401861191,-0.045600041747093,-0.051434911787510) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.009821924380958,-0.103375948965549,-0.015753397718072,0.049356997013092,-0.069491930305958,0.084089234471321,-0.067183382809162,-0.164641097187996,0.029574636369944,-0.061683565378189,0.007700772024691,-0.015298553742468,-0.008848721161485,0.054604679346085,0.058208413422108,0.062847629189491) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.081918075680733,-0.057897351682186,-0.108363285660744,-0.023576520383358,-0.182175979018211,-0.470658719539642,0.313724398612976,0.020478395745158,0.155010610818863,0.096314921975136,-0.060338102281094,0.100595399737358,-0.046827170997858,0.049170624464750,0.180252745747566,0.223348751664162) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.054881416261196,0.017647821456194,-0.018132291734219,-0.031019005924463,-0.128498286008835,-0.163352221250534,0.079213634133339,0.226617693901062,0.191233128309250,0.005822189617902,-0.130669623613358,-0.056775636970997,-0.109023526310921,-0.012608713470399,-0.015146866440773,0.037482492625713) * MODEL9_texOff(vec2(-1,1));
res += mat4(0.197440862655640,-0.066886954009533,0.003087628632784,0.073679774999619,-0.027244770899415,-0.043483242392540,-0.033875003457069,0.118782654404640,-0.181099578738213,-0.091782994568348,-0.014296137727797,-0.054403156042099,-0.147875338792801,0.100051268935204,-0.069015212357044,0.032351803034544) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.140102684497833,0.083921380341053,0.062309104949236,0.090831182897091,-0.107061848044395,0.231298208236694,0.017058609053493,-0.011931768618524,0.149965703487396,0.008918927051127,-0.156488522887230,-0.056808203458786,0.104059375822544,-0.006877656560391,0.021879425272346,0.155207544565201) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.023074468597770,-0.012526353821158,0.050158437341452,0.178044363856316,0.277535974979401,0.089305013418198,-0.038914721459150,0.119614996016026,-0.008869986981153,-0.086744271218777,0.075938254594803,-0.112070314586163,-0.116705909371376,0.018272336572409,0.061327215284109,0.030169794335961) * MODEL9_texOff(vec2(0,1));
res += mat4(0.058687910437584,-0.062358018010855,-0.035369545221329,0.010070152580738,-0.004786562640220,-0.071325123310089,-0.029565608128905,-0.034287113696337,-0.013596830889583,-0.088618315756321,-0.036142602562904,0.024072859436274,0.003292667912319,0.002532379236072,0.002068553352728,0.066579252481461) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.047541622072458,-0.267407268285751,-0.196305468678474,-0.291582494974136,-0.005650312174112,-0.140346840023994,0.099496208131313,0.016606681048870,-0.079695478081703,-0.139601588249207,0.079589962959290,0.067932449281216,-0.101186133921146,0.048581484705210,0.015969468280673,0.029287900775671) * MODEL9_texOff(vec2(1,0));
res += mat4(0.085603848099709,0.085501976311207,-0.064055971801281,0.126003384590149,0.049143236130476,0.013933259062469,0.010311057791114,0.018955301493406,0.145342066884041,0.042233396321535,-0.035211879760027,0.049799293279648,-0.010852511972189,0.003241542261094,0.023974912241101,-0.043885625898838) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.071901775896549,0.195822328329086,-0.024253305047750,-0.052666332572699,-0.083002790808678,0.069782182574272,0.046227037906647,0.085279114544392,0.066562168300152,0.074561119079590,-0.043400701135397,-0.070975206792355,-0.035835519433022,0.020701181143522,-0.006731361150742,-0.123639866709709) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.200318679213524,-0.010046783834696,-0.296566158533096,-0.076417759060860,0.016227131709456,0.315330058336258,0.026549842208624,0.030724797397852,0.164807185530663,0.121204480528831,-0.138627916574478,-0.356810837984085,-0.111017346382141,0.063199795782566,0.025396788492799,-0.076149612665176) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.055862314999104,0.035799972712994,0.032964136451483,-0.079429797828197,0.018463958054781,-0.073732770979404,-0.059176176786423,0.002813268220052,-0.215299278497696,-0.001884260913357,-0.067346140742302,-0.056980453431606,-0.049707144498825,-0.020678624510765,0.010206125676632,-0.045590888708830) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.050804223865271,-0.006614674814045,-0.014752262271941,0.154642522335052,0.031696677207947,0.020404318347573,0.043527442961931,0.127384066581726,0.165320545434952,-0.159085229039192,0.052387271076441,-0.052276775240898,0.116144783794880,-0.160472244024277,0.098605364561081,0.039910167455673) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.156345695257187,0.109443187713623,0.207387045025826,0.107516400516033,0.245888456702232,0.089796312153339,-0.142207235097885,-0.133175149559975,0.100302867591381,-0.231160581111908,0.102869436144829,-0.188962653279305,0.040251404047012,-0.042907617986202,-0.408093512058258,-0.253894805908203) * MODEL10_texOff(vec2(0,0));
res += mat4(0.129047811031342,0.045035742223263,0.110122695565224,0.038686197251081,-0.235339328646660,0.073038704693317,-0.083620429039001,-0.137453094124794,-0.301943212747574,-0.004644769243896,-0.125731125473976,-0.137852311134338,-0.134675472974777,-0.106697283685207,0.064263008534908,0.064922384917736) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.071847200393677,0.034620586782694,0.020052343606949,0.094166681170464,0.005709709599614,-0.061881955713034,-0.011058655567467,-0.049873176962137,-0.029379323124886,-0.011492408812046,-0.028240032494068,0.013780000619590,-0.030011476948857,0.023897940292954,0.064542360603809,0.007174416910857) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.111672297120094,-0.021838525310159,0.056286580860615,-0.032945916056633,0.113364234566689,-0.017334008589387,0.013138840906322,-0.112396061420441,0.297557711601257,0.084015026688576,-0.064031623303890,-0.053650382906199,-0.021406503394246,0.025292318314314,0.063953541219234,0.008331201970577) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.007714792154729,0.029953358694911,-0.041724383831024,0.039821460843086,-0.055090952664614,0.052504234015942,0.013627954758704,-0.040824528783560,-0.193012684583664,0.059149879962206,-0.006509645842016,-0.072542347013950,0.077332518994808,-0.100284516811371,0.039343334734440,-0.066430740058422) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.015392476692796,-0.186434417963028,-0.122163556516171,0.115690052509308,-0.032863665372133,-0.083396658301353,0.040701556950808,0.013993339613080,-0.001686902600341,0.001836140756495,-0.036689136177301,0.029573224484921,0.037785537540913,-0.120888233184814,-0.079340301454067,0.012197649106383) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.028183877468109,0.003958730492741,-0.184658870100975,0.113046012818813,-0.074649833142757,0.112543232738972,0.039323981851339,0.056533589959145,-0.053288217633963,-0.005456659477204,0.104864329099655,0.218223273754120,0.072328656911850,-0.057227339595556,-0.155479118227959,-0.086966365575790) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.005632908083498,-0.033601675182581,-0.055926371365786,0.014102955348790,0.123665750026703,-0.029529221355915,0.019521320238709,-0.060380738228559,0.050389435142279,-0.032222893089056,-0.074929013848305,-0.002706961473450,0.060306224972010,0.081653147935867,0.000094604234619,-0.038436908274889) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.070564001798630,0.032844901084900,0.183444976806641,-0.081592835485935,-0.127496555447578,0.187831059098244,0.018548954278231,-0.169566109776497,0.149766996502876,-0.100220181047916,0.055386733263731,0.253756701946259,0.051862373948097,-0.007940346375108,0.249957382678986,0.054014425724745) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.014546346850693,-0.168653443455696,0.068593263626099,0.104743756353855,-0.118538610637188,-0.073266237974167,0.007331591565162,0.053871542215347,-0.325118660926819,-0.333713233470917,0.110914029181004,0.448143243789673,-0.071893565356731,0.029514515772462,0.150018721818924,-0.033513069152832) * MODEL11_texOff(vec2(0,0));
res += mat4(0.075585290789604,0.054394792765379,0.042329411953688,0.046837344765663,0.196179062128067,-0.023666383698583,-0.003745813621208,-0.131373062729836,0.159566700458527,0.137801483273506,-0.007516900077462,0.063492447137833,0.083416141569614,-0.125632524490356,-0.020626857876778,-0.032119851559401) * MODEL11_texOff(vec2(0,1));
res += mat4(0.045633394271135,-0.136372491717339,-0.139898642897606,-0.001542252255604,-0.005382012575865,-0.022086651995778,0.025370588526130,0.024159872904420,-0.045658357441425,0.018875556066632,0.031453378498554,0.077937297523022,0.002170344348997,-0.106439299881458,-0.135585993528366,-0.186225622892380) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.025811202824116,-0.078107371926308,-0.060481268912554,-0.077451981604099,-0.032220289111137,0.011365316808224,0.187519446015358,-0.021281585097313,0.138480409979820,-0.088166445493698,-0.130897670984268,0.081306323409081,0.018119884654880,-0.089183032512665,0.150385126471519,-0.240522325038910) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.074371486902237,-0.068131707608700,0.019836466759443,0.126635074615479,0.092115767300129,-0.092424623668194,0.034909859299660,-0.110261879861355,0.015745526179671,0.077800042927265,-0.008134703151882,0.085938908159733,-0.174629792571068,-0.032915610820055,-0.002442935248837,-0.088031135499477) * MODEL11_texOff(vec2(1,1));
res += mat4(0.107486955821514,0.119218274950981,0.120312802493572,0.018603160977364,-0.034694109112024,0.087874077260494,0.006015561521053,-0.045169591903687,-0.074354171752930,0.023180512711406,0.027213394641876,-0.102902539074421,-0.009157916530967,0.000550841854420,0.053212288767099,0.128013610839844) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.357523113489151,-0.149925246834755,-0.051866561174393,-0.105592854321003,0.006607330869883,0.139591693878174,0.058309175074100,-0.114940635859966,0.069191031157970,-0.006103735882789,0.099018298089504,-0.020014243200421,-0.151958048343658,-0.085543558001518,-0.045378845185041,0.062064424157143) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.180636331439018,0.053552910685539,0.023003621026874,-0.051917005330324,-0.013050653040409,-0.052588857710361,-0.077483825385571,-0.082724802196026,-0.011165537871420,-0.127563580870628,-0.001257031573914,-0.174341216683388,-0.009496670216322,-0.262019157409668,-0.073351144790649,0.033301044255495) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.114103972911835,-0.259807884693146,0.019253656268120,0.120075054466724,-0.081956505775452,0.008305212482810,-0.003650794504210,-0.041698943823576,0.075793825089931,-0.022435668855906,0.002163729164749,-0.119579508900642,-0.004165383987129,-0.033733610063791,0.131517812609673,0.186257407069206) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.276319026947021,0.011025506071746,0.038314025849104,-0.165498122572899,0.101884327828884,-0.020562496036291,-0.305041462182999,-0.065580949187279,0.063455998897552,-0.162056133151054,-0.319633185863495,-0.018731260672212,-0.030732469633222,0.155573815107346,0.024919440969825,0.082609206438065) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.124244742095470,-0.173608496785164,0.032799195498228,0.015712615102530,0.126411661505699,0.130873069167137,-0.118353642523289,-0.079302504658699,-0.180304422974586,0.131684467196465,-0.042205043137074,-0.016459889709949,0.176343947649002,-0.106482453644276,0.155160680413246,-0.116568714380264) * MODEL12_texOff(vec2(0,1));
res += mat4(0.090784430503845,0.141521751880646,0.055676240473986,0.071907699108124,0.003605830250308,-0.056318897753954,-0.006593093741685,0.037535667419434,0.022642336785793,-0.065866701304913,0.067729555070400,0.091835640370846,-0.051479671150446,-0.018175560981035,0.126605033874512,0.051735643297434) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.028166977688670,0.061916511505842,0.027179364115000,0.039829511195421,-0.002480086637661,0.052075564861298,0.226135835051537,0.026995308697224,-0.044632662087679,0.036161791533232,0.270765841007233,0.158126756548882,-0.111701190471649,0.017333565279841,-0.131657376885414,0.018363034352660) * MODEL12_texOff(vec2(1,0));
res += mat4(0.028973424807191,-0.018150672316551,-0.025575924664736,-0.020709924399853,0.068175993859768,0.135179355740547,0.121845781803131,0.093251407146454,-0.084235161542892,0.079820193350315,0.181434914469719,0.195241227746010,0.003698944346979,0.145532712340355,0.153900802135468,0.107403457164764) * MODEL12_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.023237435147166,-0.098486371338367,0.253230601549149,-0.024843003600836) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL7
//!DESC [AiUpscale_HQ_4x_Photo] mapping 8_1

vec4 hook()
{
vec4 res = vec4(-0.131940260529518,-0.249936163425446,-0.133955344557762,-0.151929453015327);
res += mat4(0.036790691316128,0.041282318532467,0.050836410373449,0.042913727462292,0.026358738541603,0.000833136669826,0.139526262879372,-0.005989059805870,0.032355297356844,0.047131117433310,-0.031592275947332,-0.064917474985123,0.015972992405295,0.006213315762579,0.123761989176273,-0.031409721821547) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.063216596841812,0.017713112756610,0.022266473621130,-0.164378330111504,-0.018680870532990,-0.024605810642242,0.307721972465515,-0.168948590755463,0.098622426390648,-0.126948326826096,0.086201690137386,-0.130990296602249,-0.024194769561291,-0.035159777849913,0.256513118743896,-0.041328035295010) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.173115506768227,0.008995166979730,-0.089858867228031,0.054126068949699,0.009230866096914,-0.047383528202772,0.239537939429283,0.070082090795040,-0.060703165829182,-0.040594827383757,-0.143801078200340,-0.048075146973133,0.048412635922432,-0.000619374099188,0.014468763023615,0.029706720262766) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.029977535828948,-0.004404222127050,0.006753206718713,-0.006647450383753,-0.002837687265128,-0.024998990818858,-0.026708276942372,0.174647718667984,0.254054099321365,-0.019324408844113,0.035605724900961,-0.013204540126026,0.102394737303257,-0.115035749971867,0.109758570790291,0.326772838830948) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.098248608410358,-0.158489897847176,0.028285395354033,-0.018815627321601,0.115443468093872,-0.125228166580200,0.098750650882721,0.024954959750175,-0.129248499870300,-0.163955315947533,0.052340637892485,0.092912539839745,-0.183528020977974,-0.013128147460520,0.259077370166779,0.134378239512444) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.414609700441360,-0.181364223361015,0.011061436496675,0.031531307846308,0.085228703916073,-0.043283894658089,0.065950006246567,-0.000665328116156,-0.042990621179342,-0.108833424746990,-0.056578803807497,0.029850363731384,0.042654331773520,0.025720108300447,0.047414526343346,0.104610040783882) * MODEL1_texOff(vec2(0,1));
res += mat4(0.037715628743172,0.048014529049397,-0.001332733198069,0.000848252966534,-0.004854464437813,0.128777205944061,-0.009081219322979,0.045648649334908,0.077120706439018,0.131703585386276,0.018543526530266,0.059963826090097,-0.023377429693937,0.176696538925171,-0.017272995784879,0.098139792680740) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.040823660790920,-0.016052974388003,-0.018092744052410,-0.067648313939571,0.034354850649834,0.085072182118893,0.013933133333921,0.165541216731071,0.039711821824312,0.293630331754684,0.017790066078305,0.203264862298965,0.071318000555038,0.295138657093048,-0.015947010368109,0.109814658761024) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.103071220219135,-0.012276866473258,0.026674326509237,-0.000329832750140,0.031007805839181,-0.028658600524068,0.055927205830812,0.023029845207930,0.038430228829384,0.121415168046951,0.060624580830336,0.067065611481667,-0.022663377225399,0.106715634465218,-0.074926435947418,0.045144133269787) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.044645950198174,-0.023000851273537,-0.053388047963381,-0.014253793284297,-0.162705600261688,0.117116883397102,0.053482078015804,-0.039914906024933,-0.082534782588482,0.097891956567764,0.005371893756092,0.006440097931772,-0.014980052597821,-0.054487783461809,-0.045212320983410,-0.033840976655483) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.050632387399673,-0.025641338899732,-0.120446108281612,-0.054313439875841,0.325165271759033,0.003066633129492,0.104005835950375,-0.061814203858376,-0.015077725052834,0.069032751023769,0.183395296335220,-0.111433357000351,-0.011534553952515,-0.092841908335686,-0.205125093460083,0.018984455615282) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.168358966708183,-0.044507399201393,0.211664274334908,0.000042292100261,0.213606238365173,0.032193455845118,0.027925472706556,0.052156131714582,-0.108358427882195,-0.043503057211637,0.137518614530563,0.008503143675625,0.021790860220790,-0.045762121677399,-0.066383406519890,0.013433010317385) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.006203422322869,0.030312148854136,-0.035775553435087,-0.208331137895584,-0.025386137887836,-0.091227509081364,0.026575997471809,-0.001104523427784,0.045543454587460,0.071083478629589,0.030337421223521,0.084590844810009,-0.002618505852297,0.079262442886829,0.023443235084414,-0.219767928123474) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.133580043911934,-0.132414415478706,0.038071781396866,-0.192725419998169,0.149476036429405,-0.069171085953712,-0.000317898375215,0.084608003497124,-0.212160348892212,-0.220110967755318,-0.057056255638599,0.105309270322323,-0.317703545093536,0.221359848976135,0.191234365105629,-0.405551075935364) * MODEL2_texOff(vec2(0,0));
res += mat4(0.170646682381630,-0.056708127260208,0.002138746902347,-0.052304223179817,0.113054513931274,0.031235139816999,0.009952553547919,0.046974595636129,0.066293776035309,0.012695623561740,-0.094412565231323,-0.024917136877775,-0.230257511138916,0.072861000895500,0.084623225033283,-0.054441858083010) * MODEL2_texOff(vec2(0,1));
res += mat4(0.030774030834436,-0.004595892969519,0.005864734761417,-0.011789201758802,-0.074596747756004,0.095204472541809,0.000476794317365,0.074207045137882,-0.063291877508163,0.051472824066877,0.034422975033522,0.019267080351710,0.019771357998252,-0.175429224967957,0.002757934154943,0.095983527600765) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.002671108813956,-0.044025219976902,0.040390137583017,-0.024536628276110,0.126823291182518,0.026999527588487,-0.003025317564607,0.079001031816006,-0.041829101741314,0.174301937222481,0.033493902534246,0.110100485384464,-0.124611027538776,-0.486342251300812,-0.078859977424145,0.141085207462311) * MODEL2_texOff(vec2(1,0));
res += mat4(0.048958215862513,-0.009049683809280,-0.011148107238114,0.025386922061443,0.094611033797264,-0.011381524614990,-0.011222227476537,0.060077995061874,0.033966850489378,0.089408062398434,0.078790985047817,0.106660388410091,0.018232373520732,0.014999449253082,-0.041633810847998,0.007773782592267) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.075236335396767,0.033455371856689,0.017787970602512,-0.016891570761800,0.036540884524584,0.034527465701103,-0.040405161678791,0.034912370145321,-0.014351232908666,0.002144799800590,-0.063092857599258,-0.041850745677948,0.050737716257572,-0.042644046247005,0.025303928181529,-0.044483318924904) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.166859090328217,-0.079249627888203,-0.126768872141838,0.067581161856651,-0.079004414379597,0.018820116296411,-0.206225603818893,-0.044731162488461,-0.023472353816032,0.092913970351219,-0.275039345026016,0.264766752719879,0.099499642848969,-0.013764815405011,0.182713866233826,-0.073914565145969) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.185266107320786,0.000396357645513,0.109079420566559,-0.075773894786835,-0.122581839561462,0.042798381298780,-0.045980453491211,0.010218738578260,-0.049247946590185,-0.068626321852207,-0.175758779048920,0.040398973971605,-0.045120175927877,0.046213697642088,-0.130721062421799,-0.049444671720266) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.068571887910366,0.015351745299995,-0.011822136119008,-0.067195691168308,-0.084781892597675,0.039924673736095,0.063370630145073,-0.080396555364132,0.073751568794250,0.052814077585936,-0.018177142366767,0.032201513648033,0.078137166798115,-0.067980073392391,0.060161609202623,0.011979524977505) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.232839986681938,0.074430361390114,-0.046842288225889,0.063052445650101,-0.122718282043934,-0.003680644556880,0.058253727853298,-0.110008895397186,0.027806604281068,0.366600573062897,-0.055722057819366,0.117433406412601,-0.199382692575455,-0.006032003555447,-0.034673005342484,0.003575003938749) * MODEL3_texOff(vec2(0,0));
res += mat4(0.298990011215210,-0.137719839811325,-0.074332877993584,0.022249026224017,-0.113067865371704,-0.096495203673840,-0.027822384610772,-0.047987550497055,-0.172512277960777,0.164879053831100,-0.018053796142340,0.004457883071154,-0.033054795116186,0.014934973791242,-0.084131620824337,0.010122774168849) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.031608778983355,-0.002961674937978,0.019563687965274,-0.019083457067609,-0.045587506145239,-0.147244513034821,0.001298403600231,0.049758706241846,-0.017298221588135,-0.035202294588089,0.011574385687709,-0.061724573373795,-0.045893002301455,-0.040938287973404,0.010231685824692,0.084218896925449) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.025370514020324,0.002325517823920,0.011869139038026,-0.032621517777443,-0.096659831702709,-0.056591894477606,0.082695893943310,0.108311183750629,0.019730657339096,0.005807873792946,-0.004315308295190,-0.002809695433825,-0.003316538408399,0.076421894133091,0.027788126841187,0.035550605505705) * MODEL3_texOff(vec2(1,0));
res += mat4(0.120016895234585,0.015645490959287,-0.024315776303411,-0.018008830025792,0.053778529167175,-0.058966316282749,0.042833920568228,0.062388159334660,-0.076247230172157,0.007291741669178,-0.039815206080675,0.022603863850236,0.171752050518990,-0.065083809196949,0.056341070681810,-0.056151103228331) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.091766402125359,-0.029854439198971,-0.009998626075685,-0.056482989341021,0.052296385169029,0.147740870714188,-0.112080730497837,-0.212352871894836,0.090276822447777,0.013812820427120,-0.018749035894871,-0.012340271845460,0.068911612033844,-0.024469632655382,-0.134012728929520,0.151885256171227) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.147279411554337,-0.024414861574769,-0.081461787223816,-0.115233905613422,-0.192458450794220,0.229382455348969,-0.250679314136505,-0.128862768411636,-0.021758008748293,-0.013353583402932,0.113157354295254,-0.052725877612829,-0.127816200256348,0.053694561123848,-0.237987250089645,0.190427511930466) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.050382930785418,0.067129686474800,0.041055116802454,0.011397950351238,0.090185090899467,0.137051686644554,-0.141527980566025,0.015973709523678,0.013059779070318,-0.010543557815254,-0.123674124479294,-0.041750412434340,-0.036234438419342,-0.012222763150930,-0.149222955107689,0.025750949978828) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.103406809270382,-0.105355992913246,-0.044019278138876,-0.161383479833603,0.053133811801672,-0.066154725849628,0.050474517047405,-0.019327683374286,0.011401498690248,-0.014516336843371,-0.013083166442811,0.075768694281578,0.147861719131470,0.030967423692346,0.006118545308709,-0.108274340629578) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.003021124983206,-0.124296419322491,-0.176845058798790,-0.150223359465599,-0.079537473618984,-0.329166442155838,-0.082373030483723,-0.054548293352127,0.077137827873230,-0.088838562369347,-0.032388687133789,-0.240059211850166,-0.242895111441612,0.186516061425209,0.001429389696568,-0.205860242247581) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.027409184724092,-0.032539892941713,-0.041239339858294,0.022191710770130,0.055845640599728,0.029673738405108,-0.022096799686551,0.010721062310040,0.167966589331627,-0.055077932775021,0.005473327822983,-0.041932754218578,0.058379475027323,0.030150121077895,-0.053121179342270,-0.070096865296364) * MODEL4_texOff(vec2(0,1));
res += mat4(0.157175868749619,-0.003030439605936,-0.028432169929147,-0.028402857482433,-0.009175335057080,0.002096862066537,0.015670251101255,0.010013391263783,0.032577671110630,-0.009037435054779,-0.050150852650404,-0.051056217402220,0.065080329775810,0.052016567438841,0.013283288106322,-0.013954784721136) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.241884976625443,-0.051587361842394,0.043480023741722,-0.081709377467632,-0.069943532347679,-0.298584580421448,-0.027894821017981,0.064150333404541,-0.045569535344839,-0.030622296035290,-0.013078227639198,-0.030220212414861,-0.013043665327132,0.064686894416809,0.007042673882097,-0.006407813634723) * MODEL4_texOff(vec2(1,0));
res += mat4(0.205576568841934,-0.029556803405285,-0.002948199631646,-0.041826762259007,-0.117391221225262,0.002012271201238,0.045130558311939,0.086407653987408,-0.027593325823545,0.010109598748386,-0.026868062093854,-0.029001144692302,0.009455232881010,-0.016883894801140,0.036618664860725,0.006921499501914) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.048959322273731,0.000852087396197,0.020243478938937,-0.038386899977922,-0.002704005921260,-0.010213731788099,-0.031459160149097,0.010795413516462,0.049498356878757,0.020604671910405,0.068689174950123,-0.019095640629530,-0.087061293423176,-0.044961195439100,0.029923941940069,-0.045119415968657) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.045766249299049,0.096713416278362,-0.088244557380676,0.083184376358986,-0.129062592983246,-0.020905548706651,0.031835936009884,0.038332849740982,-0.051178336143494,-0.053388141095638,0.200441345572472,-0.157173603773117,0.170450910925865,0.010366741567850,-0.084742270410061,0.010749445296824) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.053472608327866,0.083321146667004,-0.010512448847294,-0.112714402377605,-0.028071461245418,-0.005993387661874,-0.197402238845825,-0.023924997076392,0.199407935142517,0.102972514927387,0.247211113572121,0.014902073889971,0.007228268310428,-0.010120747610927,-0.187901169061661,0.058054391294718) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.063995517790318,0.039508815854788,-0.010913198813796,0.012613395228982,0.003764848457649,-0.113115169107914,-0.064875535666943,0.062966771423817,-0.097667127847672,-0.091824427247047,0.001157845952548,0.129723250865936,0.036859378218651,0.069028079509735,-0.001393718412146,0.098608091473579) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.058777313679457,-0.003755982965231,0.072968654334545,0.028448291122913,-0.380516678094864,-0.243119403719902,0.141741216182709,-0.119803361594677,-0.032265279442072,-0.671471297740936,-0.027364131063223,-0.143432751297951,0.266705363988876,-0.240321412682533,-0.031238401308656,0.134537473320961) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.147788122296333,0.072329372167587,0.076606839895248,0.056552201509476,-0.075449377298355,-0.013190180063248,0.004007926676422,-0.059397589415312,0.241778880357742,-0.038954466581345,0.028244271874428,0.009569350630045,-0.149383172392845,-0.027333134785295,0.016479378566146,-0.009259301237762) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.031570110470057,-0.025758024305105,-0.000869523733854,0.022705039009452,0.078115671873093,0.055490795522928,-0.017335269600153,-0.005783103872091,0.059595152735710,0.058912631124258,0.024891154840589,-0.029920145869255,0.059792418032885,0.007689918857068,-0.007986632175744,-0.014467678032815) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.042844410985708,0.037702992558479,0.022416763007641,0.032977182418108,-0.094721511006355,-0.122162528336048,-0.036851365119219,-0.100742481648922,-0.018501246348023,-0.146936580538750,-0.016061784699559,-0.108952522277832,0.015137667767704,0.005463385023177,0.009664845652878,-0.045817371457815) * MODEL5_texOff(vec2(1,0));
res += mat4(0.011721433140337,-0.040328852832317,-0.030594823881984,0.026952454820275,-0.048055138438940,-0.078312717378139,0.065815366804600,-0.035762164741755,0.129566654562950,0.057980120182037,0.007324520032853,-0.065949380397797,0.040974620729685,-0.011943354271352,-0.019029607996345,-0.011842885985970) * MODEL5_texOff(vec2(1,1));
res += mat4(0.003540182719007,0.008892968297005,-0.066175155341625,-0.015995556488633,-0.088369682431221,-0.082882255315781,-0.011382545344532,-0.058336213231087,0.050839290022850,-0.028471922501922,-0.019693724811077,-0.042798325419426,-0.083464547991753,-0.022427905350924,0.019891142845154,0.053818322718143) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.094686269760132,0.003637711284682,0.168804869055748,0.060109231621027,0.044777393341064,-0.016646174713969,-0.133769094944000,0.132633775472641,-0.059328507632017,0.026224097236991,-0.173119977116585,-0.239607542753220,0.102513290941715,-0.062465250492096,-0.353673338890076,-0.159338116645813) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.079294078052044,0.009792238473892,0.050746571272612,0.058133572340012,0.026490369811654,-0.014648897573352,-0.064455658197403,-0.054945245385170,-0.151394963264465,-0.042174216359854,-0.166998997330666,-0.033085595816374,0.067996442317963,0.016898239031434,-0.174310818314552,0.047686874866486) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.084369800984859,0.011635296978056,0.007000593002886,0.161216631531715,0.111024111509323,0.048470675945282,0.016065962612629,-0.094836384057999,0.067087702453136,-0.069000303745270,0.043505102396011,-0.048669464886189,-0.021039241924882,-0.062589652836323,-0.071019515395164,-0.009544798173010) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.285004168748856,-0.180037185549736,0.019615761935711,-0.146073833107948,0.042376294732094,0.184650182723999,-0.077880404889584,0.008202626369894,-0.148587748408318,0.028723770752549,0.111817412078381,-0.382526129484177,0.376632511615753,-0.169392585754395,-0.107789032161236,0.104380965232849) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.038876973092556,-0.001628875033930,0.066161662340164,-0.042602095752954,0.085421733558178,-0.016857588663697,0.031310569494963,-0.054679337888956,-0.076792754232883,0.028830533847213,-0.015507297590375,-0.094464600086212,0.198364108800888,-0.039229240268469,-0.049662172794342,0.109614156186581) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.041690319776535,-0.042148012667894,-0.045525006949902,0.037069268524647,0.075736984610558,0.047918565571308,-0.002425652230158,0.050205282866955,0.033924192190170,0.023857509717345,0.007642955053598,0.029954405501485,-0.083843424916267,0.105214573442936,-0.000554177677259,-0.009659336879849) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.036043792963028,-0.002302210312337,-0.012960326857865,0.038679022341967,-0.157291218638420,-0.038141835480928,-0.002328493166715,-0.035337992012501,-0.038727607578039,0.027659250423312,0.034269928932190,0.051889620721340,0.007932803593576,-0.068282581865788,0.033741772174835,-0.183078750967979) * MODEL6_texOff(vec2(1,0));
res += mat4(0.017136313021183,0.038600668311119,0.008662642911077,-0.006191596388817,-0.017883887514472,-0.041001904755831,0.045664630830288,-0.072454102337360,0.102339401841164,0.010298829525709,0.043553996831179,-0.006608764640987,0.033066574484110,0.074844174087048,0.022721402347088,-0.064218781888485) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.040254823863506,-0.031807418912649,0.023248311132193,0.048509832471609) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL8
//!DESC [AiUpscale_HQ_4x_Photo] mapping 8_2

vec4 hook()
{
vec4 res = vec4(-0.072402097284794,-0.117106512188911,-0.213405534625053,-0.145311072468758);
res += mat4(-0.002044758293778,-0.048406217247248,0.032281149178743,0.061001468449831,-0.013907385990024,-0.014485668390989,-0.032924283295870,-0.045311305671930,0.040517609566450,0.039338987320662,0.046079799532890,0.063029207289219,-0.030937159433961,0.030282545834780,-0.017915701493621,0.079695269465446) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.023384001106024,-0.022326974198222,-0.086153618991375,0.054208498448133,0.003120272886008,-0.054907374083996,-0.049391455948353,0.035839252173901,0.030819559469819,-0.190873190760612,0.055942028760910,-0.127098515629768,-0.024121938273311,0.077736727893353,0.027207756415009,0.059076938778162) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.021710274741054,0.081949830055237,0.055112380534410,0.107163362205029,-0.011981897056103,0.154732286930084,-0.002160040196031,0.046941533684731,0.012660062871873,-0.043088931590319,0.011355238035321,-0.016519552096725,0.038487549871206,-0.010983390733600,0.023275552317500,-0.005196618381888) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.084847159683704,0.021033074706793,-0.036450549960136,-0.015498613938689,-0.029041048139334,0.018488802015781,0.029878389090300,-0.017840744927526,-0.098387360572815,-0.002794138621539,-0.060031488537788,0.113156639039516,-0.070500530302525,-0.115774437785149,-0.021203638985753,-0.065107338130474) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.069996863603592,-0.125499859452248,-0.219677165150642,-0.041376832872629,-0.126478135585785,-0.062930449843407,-0.110167592763901,-0.171969205141068,0.050473328679800,-0.140466034412384,0.143883079290390,-0.296189635992050,0.087219789624214,-0.158240452408791,0.065985120832920,-0.294913113117218) * MODEL1_texOff(vec2(0,0));
res += mat4(0.194828405976295,0.124023005366325,0.107747122645378,-0.748879909515381,-0.051492251455784,0.179015159606934,0.045053761452436,-0.033521927893162,0.013135783374310,0.030933845788240,0.020442890003324,-0.137075960636139,-0.069507077336311,0.114719167351723,0.025085760280490,0.010408310219646) * MODEL1_texOff(vec2(0,1));
res += mat4(0.006959907244891,0.013166463933885,0.049805413931608,-0.007818221114576,0.069016225636005,0.136568680405617,0.108560450375080,0.040231890976429,0.032289236783981,0.042277611792088,0.116751238703728,0.135671272873878,0.004797187168151,0.067546181380749,-0.059288393706083,0.062676146626472) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.055795300751925,-0.014412801712751,-0.003402179572731,-0.049319911748171,0.015966674312949,-0.096206195652485,0.089038379490376,0.021861223503947,-0.045709677040577,0.079040504992008,0.083025380969048,0.169808879494667,-0.236154139041901,-0.146174207329750,-0.070287674665451,0.258836120367050) * MODEL1_texOff(vec2(1,0));
res += mat4(0.012133888900280,0.068620823323727,0.039250943809748,-0.126232713460922,0.025092393159866,0.066864483058453,0.062234930694103,-0.065122105181217,0.047823574393988,-0.057205691933632,-0.030657142400742,0.214701518416405,-0.023035507649183,-0.065925128757954,0.038976661860943,0.149340957403183) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.036693807691336,-0.045139782130718,0.018261391669512,0.049825634807348,0.146962985396385,0.068007297813892,0.189951002597809,0.042924102395773,-0.044751152396202,-0.028744516894221,0.022248204797506,0.041765589267015,-0.006858184933662,-0.036510553210974,-0.039226710796356,-0.020627915859222) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.058441482484341,0.037243824452162,-0.066335000097752,0.183533832430840,-0.026353072375059,-0.021950045600533,-0.073935002088547,0.113430045545101,-0.014525268226862,-0.008797885850072,0.065162658691406,0.183815404772758,-0.017756797373295,-0.058263462036848,0.057418759912252,-0.114478841423988) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.015039423480630,0.000699979718775,0.032911144196987,0.028097441419959,0.133583486080170,-0.007992343977094,0.063519492745399,0.002982483012602,-0.014791246503592,0.041914511471987,0.124009810388088,0.068286299705505,0.013785704970360,-0.052763935178518,-0.055668983608484,-0.101506419479847) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.074082128703594,-0.023041579872370,0.075712323188782,0.026430945843458,0.208885475993156,-0.219997942447662,0.060943081974983,0.052892610430717,-0.054769199341536,0.015489541925490,-0.030272606760263,0.143354281783104,-0.053790044039488,0.038997359573841,-0.070772916078568,0.001616594498046) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.293326944112778,-0.113944746553898,0.269739210605621,0.352545857429504,-0.066246882081032,0.059038128703833,-0.028424873948097,-0.130094870924950,-0.097605668008327,-0.113127723336220,-0.232159480452538,-0.035610619932413,0.078323133289814,-0.066864557564259,0.234325006604195,-0.033290877938271) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.168511375784874,0.053941380232573,0.030792947858572,0.035620287060738,0.175516337156296,0.014983437024057,0.091730788350105,0.055988449603319,-0.060800306499004,-0.080897912383080,0.007656642235816,-0.255242705345154,0.000326688634232,-0.014147226698697,-0.054024752229452,0.009247121401131) * MODEL2_texOff(vec2(0,1));
res += mat4(0.026253964751959,-0.048390306532383,-0.044317826628685,0.002747415564954,0.067633591592312,0.123458638787270,0.160739809274673,0.110224485397339,-0.023772737011313,0.016467738896608,0.147535115480423,-0.026428941637278,-0.029919557273388,-0.007955314591527,-0.075803950428963,-0.033395249396563) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.049466617405415,0.178907737135887,-0.068620160222054,0.136411502957344,0.073363006114960,0.018115643411875,0.037712112069130,0.088755488395691,-0.046790923923254,0.037157043814659,0.022841569036245,0.157872691750526,0.043244168162346,-0.146979495882988,0.145000472664833,-0.357894212007523) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.002075561555102,-0.056634694337845,-0.004878361709416,-0.067477688193321,0.109036371111870,-0.041055794805288,0.026455637067556,0.022874867543578,-0.004942763596773,-0.027851561084390,0.020914664492011,0.135566920042038,-0.018769243732095,0.087367840111256,-0.036228366196156,-0.020528087392449) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.020407242700458,0.052134513854980,-0.017285075038671,-0.037205692380667,-0.035249568521976,0.014720469713211,-0.147224143147469,-0.007034393958747,0.039122644811869,0.061596386134624,0.034389853477478,0.000799878383987,0.003411506768316,0.041365273296833,0.033308804035187,-0.058632656931877) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.060443297028542,-0.276439726352692,0.307417869567871,-0.130830422043800,0.026286147534847,-0.082031637430191,0.035501144826412,-0.073169052600861,-0.041301071643829,0.043864689767361,-0.098981283605099,0.004226766061038,-0.013205156661570,0.155266344547272,-0.111506342887878,-0.058957818895578) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.082098737359047,0.097514644265175,-0.010869648307562,-0.041426852345467,-0.125293239951134,0.184546843171120,-0.041119746863842,0.033420857042074,-0.026030965149403,0.073182076215744,0.027984283864498,-0.140755891799927,0.093360468745232,-0.014064396731555,0.012181271798909,-0.013300294987857) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.236748516559601,-0.143261224031448,-0.063391506671906,0.040199767798185,0.013891344889998,0.100914575159550,-0.085512541234493,0.055578447878361,-0.057861562818289,0.018880462273955,0.036681000143290,0.054565891623497,-0.108860358595848,-0.072061903774738,0.033134438097477,-0.004930763039738) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.095701076090336,0.067876562476158,0.226893424987793,0.096614018082619,-0.102442681789398,-0.068325527012348,-0.028546188026667,0.023520218208432,0.180010348558426,0.470087021589279,-0.024505671113729,0.321861058473587,0.276604652404785,-0.145431414246559,0.231862753629684,-0.173937126994133) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.285694897174835,-0.185615614056587,-0.041443623602390,-0.097239874303341,-0.033751983195543,-0.063662216067314,-0.019641093909740,-0.183107271790504,-0.015630258247256,0.011231904849410,0.033550810068846,0.262235254049301,-0.058093834668398,-0.098383091390133,-0.003594986395910,-0.055886212736368) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.046968612819910,-0.040443424135447,-0.016782321035862,-0.016340509057045,0.095336832106113,-0.068085268139839,-0.061956893652678,-0.011949603445828,-0.009989678859711,0.071574665606022,-0.041831698268652,0.057926073670387,-0.001546832849272,0.073955930769444,0.017124479636550,-0.046990480273962) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.105666711926460,-0.063994549214840,0.083892770111561,0.003519559977576,-0.107119098305702,0.128801435232162,-0.078574270009995,-0.020109862089157,-0.148121491074562,0.243790417909622,-0.058316916227341,0.141248568892479,0.092812135815620,-0.033240389078856,0.130939379334450,-0.143457010388374) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.054368156939745,0.047316547483206,-0.030871005728841,-0.007810144219548,-0.020402053371072,0.070090614259243,-0.020817091688514,-0.070156857371330,0.027660727500916,-0.028441416099668,0.054890096187592,0.150178343057632,-0.107016012072563,0.081404671072960,-0.054659862071276,0.070630639791489) * MODEL3_texOff(vec2(1,1));
res += mat4(0.092007346451283,0.097210139036179,0.109674304723740,0.010180847719312,-0.025743179023266,0.119937069714069,-0.206202998757362,0.088763229548931,-0.048228081315756,-0.016817077994347,-0.143605783581734,-0.017178526148200,-0.065165482461452,-0.043892249464989,-0.023083772510290,-0.035746961832047) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.007375772111118,-0.092628978192806,-0.089170046150684,-0.079239003360271,-0.022642452269793,0.194380089640617,0.054457794874907,0.242143943905830,0.071730583906174,0.037174712866545,-0.032203502953053,0.002110568340868,0.040511503815651,-0.070660270750523,-0.122067481279373,-0.164990797638893) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.013379871845245,0.020760286599398,0.083846896886826,0.062366843223572,0.070786483585835,-0.029838917776942,0.096731103956699,0.183023229241371,0.060675553977489,-0.117210835218430,-0.012341668829322,0.008973663672805,0.007221544627100,-0.013313728384674,-0.026685705408454,-0.052970379590988) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.002128111664206,-0.090736538171768,-0.091068744659424,-0.029915263876319,0.063091561198235,0.035297565162182,-0.311759293079376,-0.014668526127934,0.121223211288452,0.117662772536278,-0.171965122222900,-0.016663962975144,-0.038341388106346,-0.080340906977654,0.076283074915409,0.091355681419373) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.058530438691378,-0.139691278338432,0.029047742486000,-0.048229943960905,-0.082309097051620,-0.080231085419655,-0.272827893495560,-0.177304193377495,-0.368038624525070,-0.109426267445087,-0.223128885030746,-0.133723840117455,0.051233295351267,0.194291412830353,-0.361756652593613,0.130903527140617) * MODEL4_texOff(vec2(0,0));
res += mat4(0.135742202401161,-0.084442496299744,-0.022158477455378,-0.048792585730553,-0.031483810395002,-0.007984117604792,0.010310458950698,-0.135423287749290,0.262391358613968,0.018151244148612,0.039646882563829,-0.014127731323242,-0.142901301383972,-0.033346958458424,-0.054638106375933,0.049262490123510) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.089333847165108,-0.049600418657064,-0.152693435549736,0.026904061436653,-0.001684260787442,0.005674249958247,-0.008727868087590,-0.013242377899587,-0.013083828613162,-0.031553767621517,-0.087031312286854,-0.031939119100571,-0.031985990703106,0.130619704723358,0.069921128451824,0.043447230011225) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.000123579142382,-0.034617856144905,0.153441280126572,-0.066995069384575,0.045495133846998,0.007898429408669,0.021713452413678,-0.100398384034634,0.065075479447842,-0.072416327893734,-0.055111609399319,-0.076837673783302,0.004439748357981,-0.015156951732934,0.036078438162804,0.069258622825146) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.098768599331379,-0.003248919965699,-0.077626943588257,-0.003249570261687,0.027604194357991,0.015968171879649,0.046217355877161,-0.076410405337811,-0.013109721243382,-0.037795767188072,-0.019506189972162,0.035078898072243,0.010109239257872,0.029456809163094,0.003559587989002,-0.052650474011898) * MODEL4_texOff(vec2(1,1));
res += mat4(0.027370439842343,-0.020006006583571,-0.047800436615944,0.021865276619792,-0.042664837092161,-0.053315594792366,-0.098536349833012,0.016314016655087,0.001131193828769,0.030295379459858,0.144478902220726,0.046701621264219,0.019249109551311,-0.081195868551731,0.081502087414265,-0.041545949876308) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.033348530530930,0.111342281103134,-0.206391796469688,0.096542567014694,-0.002224003197625,0.056870277971029,0.038698688149452,0.030279040336609,0.021314444020391,-0.043537575751543,0.102383568882942,0.124484762549400,0.056083910167217,-0.003214890370145,-0.274666339159012,-0.075136169791222) * MODEL5_texOff(vec2(-1,0));
res += mat4(0.094391189515591,-0.191387191414833,0.135486498475075,0.095789037644863,0.013482858426869,-0.156435891985893,-0.077403776347637,0.024041835218668,-0.017845597118139,-0.042926993221045,0.008064774796367,0.179993063211441,-0.022941403090954,-0.074551105499268,-0.036779798567295,-0.078567467629910) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.120663404464722,0.085211932659149,-0.030588386580348,-0.030055198818445,0.016568705439568,-0.079564027488232,0.090914793312550,-0.109790928661823,0.118307679891586,-0.020103536546230,0.066485948860645,0.131815940141678,0.121206060051918,-0.045815575867891,-0.081578865647316,0.059150684624910) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.101386263966560,-0.258128523826599,-0.162015348672867,0.068501293659210,-0.022002650424838,-0.073065154254436,0.189407780766487,-0.308331966400146,-0.190004810690880,-0.084550201892853,0.039196267724037,0.063876777887344,-0.312078803777695,0.015560040250421,-0.351852267980576,-0.014530302025378) * MODEL5_texOff(vec2(0,0));
res += mat4(0.430718988180161,0.048770882189274,0.109020479023457,0.048052676022053,-0.126276507973671,-0.047622837126255,-0.032227054238319,-0.025403985753655,-0.104683235287666,-0.047286823391914,-0.001767043373547,0.070772796869278,0.054300971329212,-0.102978520095348,0.010484671220183,0.020888850092888) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.040361180901527,-0.056245572865009,-0.061884555965662,0.003157850122079,-0.145612552762032,0.049242515116930,0.028474528342485,-0.011764794588089,0.055395673960447,0.045689016580582,0.050796344876289,0.048355024307966,0.058606255799532,-0.017519367858768,-0.046111185103655,0.011808922514319) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.109147295355797,0.026541830971837,-0.057504191994667,0.036261249333620,0.107638366520405,-0.124534696340561,-0.077703326940536,-0.157056733965874,0.133174702525139,0.040161844342947,0.033255081623793,-0.128876298666000,0.017909795045853,0.070653147995472,0.012646874412894,-0.046971537172794) * MODEL5_texOff(vec2(1,0));
res += mat4(0.032767228782177,-0.030061936005950,0.067437142133713,-0.001287036342546,0.040367376059294,0.068916343152523,-0.005298682022840,-0.073614545166492,-0.010849354788661,-0.039063397794962,0.038137838244438,-0.058536726981401,-0.015994064509869,-0.123648293316364,-0.019129512831569,0.016994860023260) * MODEL5_texOff(vec2(1,1));
res += mat4(0.019805977120996,-0.029732497408986,0.190443649888039,0.027512313798070,0.075882636010647,-0.044880673289299,-0.057491455227137,0.049164388328791,-0.073397397994995,-0.045410722494125,-0.054290812462568,-0.021355619654059,0.046599078923464,0.033353906124830,0.128512933850288,-0.075426414608955) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.088902175426483,-0.000633529969491,0.051923044025898,0.092136129736900,0.088472925126553,-0.058495212346315,-0.158509895205498,-0.122957862913609,0.050484396517277,-0.036052327603102,-0.189589768648148,-0.070631578564644,-0.043341089040041,0.030617959797382,0.020116850733757,0.076952144503593) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.064725607633591,0.041626930236816,-0.025490075349808,0.022491429001093,-0.088303647935390,0.022402744740248,-0.023533616214991,0.000324599212036,0.023937501013279,-0.013395839370787,0.060255493968725,-0.053181972354650,-0.012946002185345,-0.005947472061962,-0.013365029357374,0.041970323771238) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.309275478124619,0.093091234564781,0.309622764587402,-0.087610334157944,0.165803074836731,-0.045903086662292,-0.334246724843979,-0.054947886615992,0.015960870310664,-0.050616111606359,-0.022424390539527,0.078628264367580,0.047045476734638,-0.021564507856965,0.106945753097534,-0.034336596727371) * MODEL6_texOff(vec2(0,-1));
res += mat4(0.322947204113007,0.195770099759102,0.370865255594254,0.050702322274446,-0.206424102187157,0.084842078387737,-0.041939303278923,0.039681211113930,0.009348743595183,-0.258331090211868,-0.076057896018028,-0.057406783103943,-0.041080962866545,-0.246749535202980,-0.158115729689598,-0.383017599582672) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.159379795193672,-0.028599662706256,0.001279547344893,-0.006893333047628,0.298846811056137,-0.092827416956425,-0.001077134744264,0.122811973094940,-0.039985045790672,-0.172688350081444,0.034331779927015,-0.013819525949657,-0.266581594944000,-0.014222965575755,-0.017051281407475,-0.165510877966881) * MODEL6_texOff(vec2(0,1));
res += mat4(0.092892698943615,0.065746515989304,0.039312191307545,-0.030450422316790,-0.063773192465305,-0.008551355451345,-0.066126361489296,-0.008501261472702,-0.017027294263244,-0.023488383740187,-0.005944576580077,0.035092428326607,0.003761367173865,0.077953658998013,0.075128115713596,0.087098538875580) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.156727597117424,-0.121339261531830,0.032197002321482,-0.122566573321819,0.147433489561081,-0.021708697080612,0.094346366822720,0.028963781893253,0.031793054193258,-0.015120501630008,0.018734700977802,0.028448626399040,-0.031929973512888,0.019937038421631,-0.048598561435938,0.249307125806808) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.026896268129349,0.023496998474002,-0.038211733102798,0.001222554710694,-0.026467995718122,-0.031406790018082,-0.062828309834003,-0.043506644666195,-0.011672277003527,-0.011420931667089,0.015419726260006,0.032609660178423,-0.035389274358749,0.029723765328526,-0.002910525305197,0.176274091005325) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.578454434871674,0.001861911849119,0.021013757213950,-0.014735960401595) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL9
//!DESC [AiUpscale_HQ_4x_Photo] mapping 8_3

vec4 hook()
{
vec4 res = vec4(-0.112294644117355,-0.221781522035599,-0.112996704876423,0.030712829902768);
res += mat4(0.012105623260140,0.001545600360259,0.059842705726624,0.032369315624237,0.048609614372253,-0.036652661859989,0.068958453834057,0.124203197658062,0.033038094639778,-0.001007102197036,0.035510476678610,0.049027416855097,0.046382632106543,-0.033336266875267,-0.021844858303666,-0.012249701656401) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.040629711002111,0.076946385204792,-0.005358855705708,-0.126317456364632,-0.066465638577938,-0.008922892622650,0.042424611747265,0.114546835422516,0.074886202812195,0.024889191612601,0.105165615677834,-0.033222410827875,-0.027085714042187,0.009337801486254,-0.026118658483028,-0.052672740072012) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.129482060670853,-0.042819555848837,-0.003910684026778,-0.067652344703674,0.039420641958714,0.004353049211204,-0.036276526749134,0.244346991181374,-0.013731121085584,-0.006135833449662,0.056722261011600,-0.064257115125656,-0.018550382927060,0.011823184788227,-0.018139170482755,0.099720306694508) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.013232575729489,-0.008884619921446,0.055455982685089,-0.012147276662290,0.069022454321384,0.016072193160653,-0.048196338117123,0.061060473322868,0.090925060212612,0.009568450041115,-0.013288844376802,0.081676207482815,-0.004139803815633,-0.124653622508049,0.288465887308121,0.131821498274803) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.258277744054794,0.120415806770325,0.132889866828918,-0.004006802104414,-0.056074220687151,0.004272108431906,0.159945741295815,-0.123970583081245,-0.088765464723110,-0.064433477818966,-0.169582247734070,-0.165998637676239,0.015722839161754,0.213837832212448,0.157695531845093,0.131535843014717) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.245117336511612,0.044384390115738,0.065482050180435,0.049993515014648,-0.036100227385759,-0.050575509667397,0.156085029244423,-0.084332093596458,0.019780052825809,0.021903192624450,-0.111485049128532,0.062536291778088,0.060966890305281,-0.004367216024548,0.016853552311659,0.025498561561108) * MODEL1_texOff(vec2(0,1));
res += mat4(0.008800133131444,-0.008153059519827,0.042105458676815,-0.009027887135744,0.009360016323626,-0.028043106198311,-0.012322340160608,0.058432795107365,0.135565266013145,0.196620538830757,0.022020131349564,0.067977495491505,0.057823959738016,-0.035074938088655,0.102276019752026,-0.062860190868378) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.016498111188412,0.025822628289461,0.230141252279282,-0.005785249639302,0.058529708534479,0.095634907484055,0.139398053288460,0.114849224686623,-0.057062227278948,0.025799978524446,-0.208385333418846,0.255662649869919,-0.126387357711792,-0.129356503486633,0.199517384171486,-0.056003518402576) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.064326547086239,0.094761945307255,0.085002385079861,0.041335549205542,-0.006317671854049,-0.038850117474794,-0.022884130477905,0.072235845029354,0.085594460368156,-0.124203190207481,-0.051497019827366,0.133059248328209,0.053180079907179,-0.026378035545349,0.097249567508698,0.014414765872061) * MODEL1_texOff(vec2(1,1));
res += mat4(0.000184649950825,0.071538746356964,-0.070912517607212,0.077502824366093,0.099686995148659,0.026618748903275,0.049953613430262,0.120292864739895,0.027418896555901,0.118379354476929,-0.024718632921576,0.111241534352303,-0.021518236026168,-0.040664095431566,-0.017968982458115,0.076424330472946) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.006140333134681,-0.031106429174542,0.000948870438151,0.259945392608643,0.139754995703697,-0.075872875750065,0.060385603457689,-0.110059157013893,-0.091916032135487,-0.120110996067524,-0.076151661574841,0.150346770882607,-0.047008093446493,-0.025052011013031,-0.056839074939489,-0.074967183172703) * MODEL2_texOff(vec2(-1,0));
res += mat4(-0.038095135241747,0.021528884768486,-0.004877986386418,0.101598285138607,-0.088681548833847,0.088171862065792,0.158623114228249,-0.044247470796108,0.186462387442589,0.046440873295069,-0.047961395233870,0.027541538700461,-0.027726901695132,0.002163762226701,-0.014965836890042,0.029483225196600) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.023019909858704,-0.009134201332927,0.114890031516552,0.137094065546989,0.043362401425838,-0.119134165346622,0.029677296057343,0.026934091001749,-0.078198730945587,-0.109304927289486,0.138103276491165,0.036479908972979,0.070252999663353,-0.081723414361477,-0.008942110463977,-0.013531417585909) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.019454797729850,0.432197481393814,0.420375764369965,-0.048212189227343,0.305390208959579,0.161485537886620,0.078189760446548,0.039849556982517,-0.110286734998226,0.041026901453733,0.226547658443451,-0.208750784397125,-0.039742164313793,0.108935885131359,0.082615166902542,-0.164744317531586) * MODEL2_texOff(vec2(0,0));
res += mat4(0.015534091740847,-0.153230249881744,0.045419506728649,-0.049126822501421,-0.039406314492226,-0.117206186056137,0.006774025037885,0.088027022778988,0.138004720211029,0.022124869748950,0.147758334875107,0.034756079316139,0.042722877115011,0.024871788918972,0.030497714877129,-0.012809219770133) * MODEL2_texOff(vec2(0,1));
res += mat4(0.026355441659689,0.030334591865540,-0.001065428252332,-0.011964091099799,0.028724506497383,0.010504920966923,0.074046865105629,-0.005673513282090,0.020887011662126,0.048900365829468,0.033690843731165,0.018953986465931,0.019744813442230,0.019738674163818,-0.271772682666779,0.047843042761087) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.038859166204929,0.178520426154137,0.101792052388191,-0.020528223365545,0.124385252594948,-0.061804153025150,-0.020836533978581,0.064033970236778,-0.060043979436159,0.020279912278056,-0.107940927147865,0.161741226911545,-0.309347599744797,-0.265564948320389,-0.439450234174728,0.016292678192258) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.043650351464748,0.138921320438385,0.011507359333336,0.087239302694798,-0.071184948086739,-0.017013467848301,0.072747305035591,0.031490821391344,0.117607995867729,-0.045297063887119,-0.135184019804001,0.200445041060448,0.000144499645103,-0.001015443354845,-0.069356210529804,-0.050830047577620) * MODEL2_texOff(vec2(1,1));
res += mat4(0.073491811752319,-0.058584839105606,0.121736310422421,-0.061100676655769,-0.016360323876143,-0.001930200029165,0.081338003277779,-0.181860297918320,-0.024254599586129,-0.027706533670425,-0.056007947772741,-0.070201829075813,-0.110151961445808,-0.029646730050445,-0.008814890868962,0.056575421243906) * MODEL3_texOff(vec2(-1,-1));
res += mat4(0.106847427785397,0.019658163189888,-0.003116419771686,-0.099231824278831,-0.121924802660942,-0.014205396175385,0.066210053861141,-0.246662825345993,-0.007405317388475,0.030885754153132,0.010015819221735,-0.009087488986552,-0.028719238936901,-0.047579351812601,0.029246890917420,-0.193055883049965) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.006376762874424,-0.049718450754881,-0.074821591377258,0.026433533057570,0.056922424584627,-0.031006589531898,-0.019504470750690,-0.055125541985035,0.006123844534159,-0.027138233184814,0.002414220478386,-0.065488710999489,-0.080122195184231,-0.008389936760068,0.050272688269615,-0.031756404787302) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.009890356101096,0.017159499228001,-0.103907451033592,0.014628068543971,-0.035725452005863,0.098545022308826,-0.119734123349190,0.177929162979126,-0.090534545481205,-0.003351624123752,-0.090371191501617,0.081465572118759,-0.156630411744118,0.099473714828491,-0.004907270427793,-0.098728716373444) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.325560152530670,-0.182162106037140,-0.168146967887878,0.057956196367741,-0.206872731447220,-0.106068387627602,-0.150009602308273,-0.012224546633661,-0.052199065685272,-0.084593027830124,-0.096122756600380,0.133268132805824,0.069430872797966,0.194110214710236,-0.162261277437210,-0.178817659616470) * MODEL3_texOff(vec2(0,0));
res += mat4(0.048743031919003,-0.058421961963177,0.101770646870136,-0.085349135100842,-0.013227812945843,-0.038012746721506,0.114801041781902,-0.033973969519138,0.038046151399612,-0.030965819954872,0.055086113512516,0.033959519118071,0.023655440658331,-0.159819826483727,-0.121944412589073,0.111221432685852) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.021741386502981,-0.028524091467261,0.024863228201866,-0.002248615957797,-0.145678296685219,-0.097604557871819,-0.011529608629644,-0.052224237471819,0.039386078715324,-0.013103052042425,-0.017071787267923,-0.070101425051689,-0.066198244690895,-0.038716003298759,-0.074391134083271,0.029243158176541) * MODEL3_texOff(vec2(1,-1));
res += mat4(0.047252167016268,-0.040963128209114,0.001279015443288,-0.029675310477614,0.023839555680752,0.081319235265255,-0.021478377282619,0.137522220611572,-0.126944899559021,0.026600055396557,-0.136253759264946,-0.092894732952118,-0.082334920763969,-0.113957308232784,-0.089179068803787,0.132606893777847) * MODEL3_texOff(vec2(1,0));
res += mat4(0.006221763323992,-0.009106911718845,-0.067297361791134,0.018341872841120,0.034927777945995,-0.009267404675484,-0.085961163043976,0.086425654590130,0.017150539904833,-0.042089518159628,0.042386453598738,-0.023202652111650,0.089847303926945,0.038891103118658,-0.040762767195702,0.001566315768287) * MODEL3_texOff(vec2(1,1));
res += mat4(0.028355740010738,0.083850480616093,-0.012765055522323,-0.134271219372749,0.032686796039343,0.063811622560024,0.158196598291397,-0.157270297408104,-0.028643185272813,-0.004426361061633,-0.019450385123491,-0.054184641689062,-0.031178031116724,-0.034700401127338,-0.050510257482529,0.113588206470013) * MODEL4_texOff(vec2(-1,-1));
res += mat4(0.139979705214500,-0.044876005500555,-0.093062445521355,-0.221446231007576,0.045027263462543,-0.036884929984808,0.046576648950577,-0.135202631354332,0.038750622421503,-0.008436536416411,0.023879211395979,-0.081240467727184,0.018793201074004,0.021677758544683,-0.002392399823293,0.208796054124832) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.154259577393532,-0.002481576520950,-0.010394099168479,-0.108939938247204,0.095893591642380,0.060229349881411,0.099205955862999,-0.105193927884102,-0.050651315599680,-0.015179963782430,-0.015028270892799,-0.077695883810520,0.014095094986260,-0.073252804577351,-0.024045567959547,-0.000715590431355) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.055526662617922,-0.102262131869793,-0.121560521423817,-0.081297062337399,-0.130789965391159,-0.113618768751621,-0.054309364408255,0.026123167946935,0.180287003517151,-0.008102868683636,-0.136166825890541,-0.026916276663542,-0.090379260480404,-0.008841092698276,0.005001368466765,-0.027150526642799) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.187651380896568,-0.056266695261002,-0.148893415927887,-0.048727288842201,-0.031887926161289,-0.166098549962044,-0.247621208429337,-0.034296281635761,0.337986737489700,-0.030462130904198,-0.003325063036755,-0.119476228952408,0.273084610700607,-0.406049013137817,-0.314849734306335,-0.231253013014793) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.047808378934860,0.100393578410149,0.027562571689487,-0.073510393500328,0.073518104851246,0.029703384265304,0.023548010736704,-0.003418141510338,0.016899205744267,0.051588036119938,-0.160866215825081,0.004025451373309,-0.057943679392338,-0.061315994709730,-0.015010697767138,-0.086210288107395) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.095302835106850,-0.047389727085829,-0.019280325621367,0.050271913409233,-0.048160474747419,0.061719965189695,-0.059652458876371,0.011583560146391,0.021543607115746,-0.031443040817976,-0.077853225171566,0.047746807336807,0.007596762850881,0.019486730918288,0.112160697579384,0.007242454681545) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.191928550601006,-0.076448768377304,-0.106805540621281,0.002364482497796,-0.093877628445625,-0.129687160253525,-0.408153116703033,0.034263473004103,0.050597138702869,-0.025368889793754,-0.024978131055832,0.006621738895774,0.097097791731358,-0.032234035432339,0.099054336547852,-0.000159847724717) * MODEL4_texOff(vec2(1,0));
res += mat4(0.244217723608017,-0.115434020757675,-0.035738620907068,0.021947162225842,0.127108201384544,-0.013204662129283,-0.123221844434738,0.073333404958248,0.090870611369610,-0.034120101481676,0.030854646116495,-0.032055385410786,0.032044798135757,-0.094569146633148,0.012630849145353,0.045877084136009) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.001134749618359,0.007557378150523,0.040655788034201,-0.023725967854261,-0.024177294224501,-0.011769984848797,0.011898194439709,-0.083292521536350,0.091910801827908,0.031573429703712,0.071808576583862,0.124918274581432,0.023098932579160,0.024857029318810,0.056041661649942,0.079763680696487) * MODEL5_texOff(vec2(-1,-1));
res += mat4(-0.058776132762432,-0.000885958725121,0.116435281932354,0.059809830039740,0.024664292111993,0.001347932266071,-0.003633855376393,0.024655858054757,-0.032461576163769,-0.052001282572746,0.003619147697464,0.297698318958282,-0.239956557750702,-0.002259017433971,-0.001935436041094,-0.155717223882675) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.017959171906114,0.031058300286531,0.062688536942005,-0.067925363779068,0.070262618362904,0.033235423266888,0.008207319304347,-0.017208954319358,0.029830476269126,0.064576752483845,0.057876426726580,0.047315102070570,0.023151412606239,0.000583686982282,0.062832608819008,-0.002061486942694) * MODEL5_texOff(vec2(-1,1));
res += mat4(0.044310793280602,-0.060463972389698,-0.019279625266790,-0.007469925098121,-0.057091183960438,-0.075674369931221,0.010936859063804,-0.182027235627174,-0.051905959844589,0.043052267283201,-0.062161087989807,0.037794876843691,0.147047549486160,0.020022526383400,0.004896385129541,-0.003814916359261) * MODEL5_texOff(vec2(0,-1));
res += mat4(-0.092929497361183,-0.096205368638039,0.014002578333020,-0.014821414835751,0.261246204376221,-0.018819680437446,-0.035184014588594,0.103358969092369,0.120558746159077,0.084085360169411,-0.079150937497616,0.002263110596687,-0.341300666332245,-0.253183990716934,-0.376751929521561,0.126689091324806) * MODEL5_texOff(vec2(0,0));
res += mat4(-0.145019412040710,0.063849411904812,0.040396206080914,0.115034803748131,0.148254394531250,-0.087257802486420,-0.142621070146561,-0.062747575342655,0.035905569791794,0.017120605334640,0.077341116964817,-0.009634037502110,0.161826699972153,0.010869021527469,-0.079711705446243,-0.013771316967905) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.058643188327551,0.043402053415775,-0.036226481199265,0.009791060350835,-0.144059672951698,0.079068988561630,-0.002966972999275,0.028018096461892,0.054437119513750,-0.091983385384083,0.181986287236214,-0.033954173326492,0.061294350773096,-0.029591770842671,0.050303768366575,0.008709030225873) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.005915905814618,0.013524554669857,0.157408431172371,-0.013642627745867,-0.013895873911679,-0.113279886543751,0.051898449659348,-0.175712272524834,0.123202368617058,0.076251961290836,0.236614525318146,-0.223395362496376,-0.088822916150093,-0.148446768522263,-0.192925587296486,-0.018500709906220) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.009395551867783,-0.068618886172771,-0.024001166224480,0.012971555814147,-0.081827357411385,0.021403426304460,-0.020772816613317,0.009689560160041,0.026342181488872,0.073396295309067,0.090734519064426,0.004169236868620,-0.029905557632446,0.039887424558401,0.055730633437634,-0.035218421369791) * MODEL5_texOff(vec2(1,1));
res += mat4(0.001044705044478,0.043948583304882,-0.002593044657260,-0.108539462089539,-0.033420737832785,0.088638760149479,-0.078824386000633,-0.080873951315880,-0.004264666233212,-0.045933987945318,0.040996432304382,-0.003293205285445,0.017285626381636,0.036008201539516,-0.052627742290497,-0.122874900698662) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.026781935244799,-0.009324553422630,-0.027137296274304,0.145647838711739,-0.031656622886658,0.050630539655685,0.030882406979799,0.115634493529797,-0.086967483162880,0.048637643456459,0.172432228922844,-0.356776207685471,0.147439911961555,-0.000816831539851,-0.076848089694977,-0.139089003205299) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.006242680829018,0.048455514013767,0.024535337463021,0.031589321792126,-0.038988765329123,-0.082818828523159,-0.050162162631750,-0.046842448413372,-0.044961813837290,0.026800010353327,0.034756079316139,-0.069404557347298,0.012077533639967,-0.043721973896027,-0.063729748129845,0.027671637013555) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.074756510555744,0.085046485066414,-0.079493559896946,-0.014143194071949,0.067675836384296,0.048549607396126,0.058626584708691,-0.064490877091885,0.008628129959106,0.001899003866129,-0.128367274999619,0.090885244309902,0.053086090832949,-0.006855209823698,-0.060398146510124,0.016388216987252) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.139066204428673,0.167761012911797,0.128956541419029,-0.047296881675720,0.029927683994174,0.166287764906883,-0.220268681645393,0.100027635693550,-0.061376903206110,0.083106599748135,-0.022622339427471,0.000067046901677,-0.123571164906025,-0.351814478635788,0.217379018664360,0.336909115314484) * MODEL6_texOff(vec2(0,0));
res += mat4(0.166620686650276,0.021609708666801,0.014302039518952,0.033813755959272,-0.084070935845375,0.111235603690147,-0.056355267763138,-0.016262363642454,0.028467509895563,-0.129677236080170,-0.125100091099739,-0.128377020359039,0.132701784372330,0.040807358920574,0.012407725676894,0.082307584583759) * MODEL6_texOff(vec2(0,1));
res += mat4(0.091851025819778,-0.072340272367001,-0.056248273700476,0.017364412546158,0.046074368059635,0.097073704004288,-0.129519268870354,0.034549444913864,0.033523671329021,0.008473496884108,0.140708997845650,-0.062472362071276,0.061401382088661,-0.005372019018978,0.023034801706672,-0.040466010570526) * MODEL6_texOff(vec2(1,-1));
res += mat4(-0.167942509055138,0.132632285356522,0.150067210197449,0.038848701864481,-0.098249725997448,-0.094142884016037,-0.142284184694290,-0.062594167888165,-0.044714543968439,0.125850453972816,0.016001055017114,-0.046602766960859,0.053587026894093,0.162193343043327,0.297990500926971,-0.146680176258087) * MODEL6_texOff(vec2(1,0));
res += mat4(0.070263229310513,0.070324525237083,0.036673896014690,-0.015561601147056,-0.045773964375257,0.165963470935822,0.054578106850386,-0.081992045044899,0.098104700446129,-0.117611840367317,-0.034780722111464,0.035416819155216,-0.042128618806601,-0.042505342513323,0.067591041326523,-0.054951634258032) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.017509734258056,0.028366740792990,-0.007395912893116,0.159306734800339) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL10
//!DESC [AiUpscale_HQ_4x_Photo] mapping 8_4

vec4 hook()
{
vec4 res = vec4(-0.301146030426025,-0.179075688123703,-0.365523070096970,-0.247043862938881);
res += mat4(0.017544440925121,0.019004242494702,0.028021501377225,-0.001554702292196,0.058594349771738,0.012298075482249,0.060108549892902,0.001922632101923,0.057173438370228,0.036296911537647,0.003395682666451,-0.061697710305452,-0.026520265266299,0.002575658028945,-0.016959972679615,-0.018688447773457) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.043770223855972,0.052341774106026,-0.018214806914330,0.016842769458890,-0.102267384529114,-0.085349239408970,-0.082779720425606,0.077726043760777,-0.171711370348930,0.060210026800632,-0.078531548380852,0.001166288624518,-0.040754012763500,0.056105595082045,-0.028825219720602,0.059514660388231) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.068839848041534,-0.098045036196709,0.051125850528479,-0.024240458384156,0.028676467016339,0.030584225431085,-0.002355073811486,-0.038839522749186,-0.011591834016144,-0.025220725685358,0.004551533609629,0.048425756394863,-0.009803174994886,0.009936195798218,0.032421551644802,-0.008253836072981) * MODEL1_texOff(vec2(-1,1));
res += mat4(-0.010838908143342,0.019084695726633,-0.001236485084519,0.018654478713870,-0.198986828327179,0.013714074157178,0.008661417290568,0.025121349841356,0.028905609622598,0.244377538561821,0.150727152824402,0.197933256626129,0.196012929081917,0.034761298447847,0.159637153148651,-0.106410153210163) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.001681403722614,-0.392122626304626,0.211545169353485,-0.221129208803177,0.152731776237488,-0.000064862229920,0.212559118866920,0.021511649712920,0.167001008987427,-0.084368161857128,-0.093694008886814,-0.319867044687271,-0.115032345056534,-0.052003894001245,-0.077815912663937,-0.063822291791439) * MODEL1_texOff(vec2(0,0));
res += mat4(0.087284304201603,0.042978096753359,-0.295065760612488,-0.324831932783127,0.114072628319263,0.047819320112467,0.078724630177021,0.016419714316726,0.001947872573510,0.025778198614717,-0.081573493778706,-0.029343813657761,0.026110835373402,0.038752935826778,0.038936529308558,0.033298555761576) * MODEL1_texOff(vec2(0,1));
res += mat4(0.039333093911409,0.039442121982574,0.025859415531158,0.026007628068328,-0.010027508251369,0.055169619619846,0.012470379471779,-0.055222135037184,-0.106888405978680,0.187676951289177,-0.006680831778795,0.040458966046572,-0.084851920604706,-0.066658660769463,-0.152504682540894,-0.048078604042530) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.069533266127110,-0.018274703994393,-0.057270199060440,0.030633537098765,0.156091198325157,0.004726645071059,-0.033046223223209,-0.008232013322413,-0.020771758630872,-0.047665577381849,-0.004941992461681,0.215152099728584,-0.033205013722181,-0.129087746143341,0.172336891293526,0.099280700087547) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.046398147940636,-0.010976579040289,0.007440018467605,-0.005419478751719,-0.051305554807186,-0.023403219878674,-0.015190227888525,0.010477849282324,-0.001553226378746,0.115890823304653,-0.001800594618544,-0.015309972688556,-0.024127051234245,0.015839537605643,-0.105182960629463,-0.016308050602674) * MODEL1_texOff(vec2(1,1));
res += mat4(-0.010923868976533,-0.013050008565187,-0.000318786303978,0.065386496484280,-0.114756606519222,-0.056221406906843,0.010802620090544,-0.106925666332245,0.101182371377945,-0.026966771110892,0.049835093319416,-0.058265078812838,-0.003023108467460,-0.009051406756043,-0.014548176899552,-0.028633305802941) * MODEL2_texOff(vec2(-1,-1));
res += mat4(-0.092335283756256,0.024957088753581,-0.123093642294407,0.096428178250790,-0.086259067058563,0.212483704090118,0.042325511574745,0.042057823389769,-0.071290962398052,-0.097464941442013,-0.032573845237494,0.085183404386044,-0.035663861781359,0.028401071205735,-0.037827551364899,-0.035461664199829) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.026664676144719,0.009790913201869,0.015983693301678,0.009593695402145,0.000468437676318,-0.044613622128963,-0.037945840507746,0.038031827658415,0.021777536720037,0.103804707527161,0.096360750496387,-0.047603260725737,-0.018076945096254,-0.015104464255273,0.039332263171673,-0.027371140196919) * MODEL2_texOff(vec2(-1,1));
res += mat4(-0.118465669453144,-0.176380187273026,0.005025889724493,-0.071371421217918,0.015333873219788,-0.070354141294956,-0.063825786113739,0.074818484485149,0.011786326766014,-0.012604782357812,-0.063326403498650,0.229238823056221,-0.083084926009178,-0.278122484683990,-0.102691151201725,-0.088592194020748) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.107868760824203,-0.163689568638802,-0.027342259883881,0.133307754993439,-0.262369334697723,0.256148755550385,-0.218731954693794,-0.012016100808978,-0.015430170111358,-0.279132753610611,-0.081952944397926,-0.285676807165146,-0.057747073471546,0.109741151332855,-0.052269730716944,0.072807960212231) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.042303919792175,0.007224257569760,-0.122917413711548,-0.015499399043620,-0.010744092054665,-0.001272919937037,-0.034555353224277,-0.042051151394844,0.027805751189590,0.099576406180859,-0.021374780684710,0.144307091832161,-0.038882624357939,-0.048303473740816,-0.043346423655748,0.000992064480670) * MODEL2_texOff(vec2(0,1));
res += mat4(0.005224263295531,-0.024547174572945,-0.028358792886138,0.084147311747074,0.011093427427113,0.055357418954372,-0.037689629942179,-0.012499590404332,-0.042742952704430,0.007169356103987,0.028981963172555,-0.057491477578878,-0.080600097775459,-0.226096332073212,-0.009953406639397,0.017753453925252) * MODEL2_texOff(vec2(1,-1));
res += mat4(0.016476845368743,0.124063193798065,-0.010107778944075,-0.075793124735355,0.048448503017426,0.179850354790688,-0.084772251546383,-0.041651479899883,0.018269808962941,-0.119420051574707,0.029132759198546,0.102152235805988,0.046866215765476,0.019666571170092,-0.228323087096214,-0.186594262719154) * MODEL2_texOff(vec2(1,0));
res += mat4(-0.026045832782984,0.012650197371840,0.018168997019529,0.077595010399818,0.003419980173931,-0.046441886574030,-0.011811440810561,-0.040779475122690,0.088070742785931,0.140322387218475,0.167596265673637,0.025291366502643,-0.018803380429745,-0.052367653697729,-0.096161305904388,0.005896014161408) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.136028096079826,-0.124707370996475,-0.000176740242750,-0.097376637160778,0.034088302403688,-0.009778094477952,-0.015446288511157,-0.028246844187379,-0.029315318912268,0.020088775083423,-0.035445004701614,-0.027793973684311,-0.077418141067028,0.067476674914360,-0.047022968530655,0.000166697267559) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.020946178585291,0.172020792961121,0.072806730866432,-0.050493855029345,-0.125972598791122,-0.137770265340805,-0.078580029308796,-0.028487430885434,0.060158163309097,-0.025632554665208,0.079493209719658,-0.019923385232687,-0.011642439290881,0.055425751954317,0.008416024968028,-0.009395486675203) * MODEL3_texOff(vec2(-1,0));
res += mat4(-0.031791150569916,-0.022424541413784,0.046769082546234,-0.042523346841335,0.028323955833912,-0.040675070136786,0.046479515731335,0.000325921457261,0.025373391807079,-0.015375819057226,-0.012366302311420,0.007676194421947,-0.058407902717590,-0.062143072485924,-0.065080307424068,-0.038463190197945) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.100542403757572,-0.175308689475060,-0.034675687551498,-0.078478284180164,-0.101878806948662,-0.184257224202156,-0.057744160294533,-0.081724688410759,0.046162825077772,0.113394893705845,0.028158180415630,0.008203088305891,0.078092277050018,0.189336284995079,0.021675469353795,0.112265974283218) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.193666622042656,0.305468589067459,-0.091038011014462,0.106181249022484,-0.023781411349773,-0.106499381363392,-0.060264341533184,-0.117887333035469,0.406774342060089,-0.112264096736908,0.278436839580536,0.045619770884514,-0.033444549888372,-0.130792081356049,-0.061597939580679,-0.175707951188087) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.059114795178175,-0.014106139540672,-0.097560383379459,-0.074360102415085,-0.048940613865852,-0.032124683260918,-0.121677227318287,-0.042311169207096,-0.052891094237566,0.046659830957651,-0.081965766847134,-0.008093948476017,0.047834523022175,-0.104742266237736,0.029516192153096,-0.031167563050985) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.002559507032856,-0.016467904672027,-0.010351131670177,-0.017752917483449,0.046877793967724,-0.228594094514847,0.133861109614372,0.066782027482986,-0.058716110885143,0.059348545968533,-0.049004230648279,-0.003434097161517,-0.147504210472107,-0.003637002082542,0.006420300342143,-0.013626809231937) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.018053986132145,0.141572132706642,0.066229782998562,-0.045926798135042,-0.065887048840523,0.031866900622845,-0.128319293260574,0.041911680251360,-0.180545315146446,-0.023301359266043,-0.050809364765882,0.021279407665133,0.009420088492334,-0.080994576215744,0.058333657681942,0.213120847940445) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.037516210228205,0.061559803783894,-0.115546159446239,-0.073907926678658,0.026435283944011,-0.011579073965549,0.010744237340987,0.034459255635738,0.032152675092220,0.028763251379132,0.081946365535259,-0.059653390198946,-0.013793196529150,-0.015173009596765,-0.024455741047859,0.001153601333499) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.086409166455269,-0.112684577703476,-0.056255385279655,-0.011930428445339,0.083042107522488,-0.046759143471718,0.130777463316917,0.018590191379189,0.063119009137154,0.000734648841899,0.076526805758476,-0.026770070195198,-0.005497010890394,0.008227949030697,-0.001629688194953,-0.001979148946702) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.061879519373178,0.173312768340111,-0.026016853749752,-0.090495787560940,0.037053458392620,-0.002985412254930,-0.003429864766076,0.170055687427521,0.216347485780716,0.100826136767864,-0.051390815526247,-0.056702937930822,-0.019789760932326,-0.091434873640537,-0.022984413430095,-0.130734816193581) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.008818251080811,-0.048422589898109,-0.001506097498350,0.122058667242527,0.055908296257257,0.089898288249969,0.045127011835575,0.016300760209560,0.088869668543339,-0.004395126365125,0.100095376372337,0.046663407236338,-0.058520093560219,-0.038624148815870,-0.153074964880943,-0.086444921791553) * MODEL4_texOff(vec2(-1,1));
res += mat4(0.035938125103712,-0.070339687168598,0.071537159383297,-0.176538750529289,0.047164361923933,-0.365721464157104,0.134714066982269,0.038052998483181,-0.146158948540688,0.095571078360081,-0.142926946282387,0.034344382584095,0.064118862152100,0.032937448471785,0.034651581197977,0.045134108513594) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.094028748571873,0.139638483524323,-0.087955199182034,0.149020120501518,-0.063311718404293,-0.136254057288170,-0.197245508432388,-0.088241226971149,-0.037449158728123,0.207447141408920,0.569240212440491,-0.028654983267188,-0.328891009092331,0.018977208063006,-0.394383162260056,0.135476320981979) * MODEL4_texOff(vec2(0,0));
res += mat4(0.060978759080172,-0.007135049439967,0.077308535575867,-0.139041289687157,0.060305934399366,0.026919391006231,-0.007813250645995,0.084342122077942,0.025998394936323,0.081048935651779,0.180449679493904,-0.027181515470147,-0.019665094092488,0.010963290929794,0.055473025888205,-0.023407395929098) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.102360017597675,0.150987878441811,0.025468826293945,0.111951887607574,-0.109360009431839,-0.150645986199379,-0.037116985768080,-0.027501272037625,0.130409270524979,-0.069660909473896,0.034736339002848,0.065915703773499,-0.154122337698936,0.112055562436581,-0.026236308738589,0.026974588632584) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.070960052311420,-0.085082486271858,-0.111226275563240,-0.365032017230988,0.001236220472492,-0.073996864259243,0.020264226943254,-0.079736597836018,0.058648038655519,-0.045064952224493,0.004091054666787,-0.011354272253811,0.019600288942456,-0.015398743562400,-0.096841208636761,-0.016511583700776) * MODEL4_texOff(vec2(1,0));
res += mat4(0.002964067272842,0.137774303555489,0.062885247170925,0.107797555625439,0.057139832526445,0.052758142352104,0.027092386037111,-0.039818476885557,-0.006553805433214,0.078785412013531,-0.054017305374146,-0.003199307713658,0.015944736078382,-0.024844693019986,0.023753637447953,0.029815521091223) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.017339009791613,-0.041022602468729,0.006459020078182,-0.023398227989674,0.010503948666155,-0.052559416741133,0.021633220836520,0.016580309718847,0.070520013570786,0.113771274685860,0.036010537296534,-0.028449926525354,0.060654837638140,0.051829937845469,0.024717066437006,-0.025000721216202) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.070738606154919,0.128054708242416,0.004041031468660,0.022061519324780,-0.016823647543788,-0.130567580461502,-0.075354598462582,0.022726276889443,-0.055802132934332,0.007622698321939,-0.038327321410179,0.046190310269594,-0.035655781626701,-0.143749237060547,0.058192361146212,-0.050571147352457) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.043250318616629,0.017769200727344,-0.102606125175953,0.078727900981903,0.001119593274780,-0.001664006733336,0.087724380195141,-0.012407603673637,0.020418379455805,0.016127852723002,0.086172774434090,0.043522775173187,0.015107899904251,0.031400416046381,-0.081379592418671,-0.045072399079800) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.108792692422867,0.060705140233040,-0.116951994597912,-0.040953986346722,0.070584744215012,-0.133791446685791,-0.062371339648962,-0.038821350783110,0.012297636829317,-0.178987070918083,-0.010992808267474,0.000459681643406,0.002722218399867,0.124790199100971,0.061044327914715,0.126181244850159) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.029155494645238,0.488552838563919,0.182210609316826,0.098720848560333,0.163329094648361,-0.201736941933632,-0.058988261967897,-0.071077302098274,-0.550155222415924,0.020299635827541,-0.311674565076828,-0.242666214704514,-0.185256198048592,-0.308343857526779,-0.143532231450081,0.120022840797901) * MODEL5_texOff(vec2(0,0));
res += mat4(0.160588160157204,0.156303644180298,0.114702880382538,-0.043624632060528,-0.063947670161724,-0.036148715764284,0.071942865848541,-0.005912675522268,0.045409396290779,-0.005072769708931,0.074709877371788,0.054360743612051,0.036754444241524,0.108871720731258,0.075442425906658,0.038867235183716) * MODEL5_texOff(vec2(0,1));
res += mat4(0.039779584854841,-0.108825214207172,-0.023467523977160,0.057977594435215,0.120984353125095,0.019157394766808,0.067918516695499,-0.034260053187609,0.016559341922402,-0.035302337259054,-0.020307570695877,0.023473897948861,0.042600583285093,0.059019882231951,-0.047851439565420,-0.067235603928566) * MODEL5_texOff(vec2(1,-1));
res += mat4(0.058390974998474,0.020143887028098,-0.031942900270224,-0.091267071664333,-0.040402814745903,-0.193878620862961,0.270287990570068,-0.108031451702118,0.117796950042248,0.133485093712807,0.125683680176735,-0.058910127729177,0.004751484841108,-0.029665593057871,0.059272967278957,0.064735636115074) * MODEL5_texOff(vec2(1,0));
res += mat4(-0.028325820341706,0.049132253974676,-0.019500907510519,0.009847295470536,0.083721309900284,-0.079611055552959,-0.067851871252060,0.027429994195700,0.008940605446696,-0.008661568164825,-0.073822252452374,0.034415114670992,0.030023155733943,0.035307552665472,0.027114272117615,0.005249579437077) * MODEL5_texOff(vec2(1,1));
res += mat4(0.022427501156926,0.092521876096725,0.025549307465553,0.021414982154965,-0.108153723180294,-0.139552190899849,-0.071776099503040,0.115468248724937,0.002987769199535,0.010607570409775,0.027053516358137,-0.024070829153061,-0.036729611456394,0.030209055170417,-0.035150438547134,0.057872757315636) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.064210884273052,-0.109708756208420,0.058291211724281,0.091199755668640,0.076919496059418,-0.073572106659412,0.081288747489452,-0.031624279916286,0.012423111125827,-0.031507298350334,-0.009424781426787,-0.018540631979704,0.016945807263255,0.006473130546510,-0.014360105618834,0.082193069159985) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.000238769804128,0.060573458671570,0.079740665853024,0.011798378080130,-0.028470043092966,0.051586151123047,-0.063305616378784,0.025163773447275,-0.013288985006511,-0.040871918201447,-0.042254991829395,0.021076660603285,0.001413226826116,0.020381353795528,0.012838417664170,-0.031442683190107) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.234800592064857,0.365464895963669,0.033122092485428,0.203109875321388,0.100027538836002,-0.022866837680340,0.076950140297413,0.086322978138924,-0.182420700788498,0.057750690728426,-0.031800985336304,-0.079575017094612,0.012762661091983,0.080126218497753,-0.117432519793510,-0.063094593584538) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.006133717484772,-0.307261943817139,-0.122112862765789,-0.216993987560272,-0.164652511477470,0.242777630686760,-0.107730776071548,0.520678758621216,-0.252820402383804,-0.188124835491180,-0.029497163370252,-0.295190870761871,-0.276478886604309,-0.589577496051788,-0.005326874554157,-0.550060868263245) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.032893802970648,0.032993007451296,-0.077393434941769,0.046363186091185,0.053152393549681,0.031582459807396,0.090285539627075,0.003782910062000,0.061165142804384,-0.005568843334913,0.061378668993711,0.015985593199730,-0.019777659326792,-0.025125686079264,0.186762735247612,0.119106367230415) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.054517034441233,0.133152484893799,0.069918751716614,-0.080335974693298,-0.057125654071569,0.031593833118677,0.022717148065567,-0.044052317738533,-0.096083410084248,0.049122352153063,-0.031826816499233,-0.006021005567163,0.021747268736362,0.116010226309299,0.001972401048988,-0.029238957911730) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.032662607729435,-0.219946056604385,0.147022426128387,0.095869742333889,0.014888704754412,0.019218284636736,-0.070811137557030,0.049488853663206,0.087086193263531,-0.100262634456158,-0.023281963542104,-0.049745507538319,0.037520937621593,-0.017754562199116,0.039401378482580,-0.054146498441696) * MODEL6_texOff(vec2(1,0));
res += mat4(0.033664725720882,0.063459984958172,0.010766705498099,-0.025503326207399,-0.038457404822111,-0.058012947440147,-0.037478100508451,0.083507053554058,-0.049329407513142,0.049688953906298,-0.063076809048653,-0.016910063102841,-0.010118721053004,0.011397049762309,0.031332120299339,-0.027522763237357) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.028055932372808,0.012920674867928,0.033962272107601,0.007028660736978) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL11
//!DESC [AiUpscale_HQ_4x_Photo] mapping 8_5

vec4 hook()
{
vec4 res = vec4(-0.071573473513126,-0.059432420879602,-0.167320251464844,0.004129229113460);
res += mat4(0.024791553616524,0.020249560475349,-0.009306045249104,-0.026496412232518,0.015470641665161,-0.000971254659817,0.009222934022546,0.020562417805195,-0.010428382083774,0.072404347360134,-0.013442651368678,0.022020300850272,0.068884991109371,-0.059307765215635,0.017702333629131,-0.022297201678157) * MODEL1_texOff(vec2(-1,-1));
res += mat4(0.032312110066414,0.024398177862167,-0.017538892105222,-0.035023976117373,0.093159720301628,-0.037356052547693,-0.013621740974486,0.066575594246387,-0.025403758510947,0.032899398356676,0.014926719479263,0.023117756471038,0.160620450973511,0.048733923584223,0.038111515343189,-0.027727942913771) * MODEL1_texOff(vec2(-1,0));
res += mat4(0.145115539431572,-0.042895738035440,0.051760371774435,-0.023248232901096,0.057322151958942,0.038670267909765,-0.108051829040051,0.008480866439641,0.049868956208229,-0.042433325201273,0.040512308478355,-0.007588756736368,-0.006817372050136,-0.024634722620249,-0.022193005308509,0.005529886111617) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.057288501411676,-0.005526112392545,-0.075863517820835,0.031693320721388,0.004588390700519,-0.020682524889708,-0.023615548387170,0.115701258182526,0.023693380877376,0.159430012106895,0.220672279596329,-0.076916821300983,-0.112490877509117,0.054008793085814,0.147818803787231,-0.081315644085407) * MODEL1_texOff(vec2(0,-1));
res += mat4(0.017761453986168,-0.140553295612335,-0.044540110975504,-0.153639182448387,-0.080719344317913,0.091128371655941,0.116155900061131,-0.428572714328766,-0.237356767058372,-0.110101521015167,-0.160621896386147,-0.024654811248183,-0.273149877786636,-0.126188457012177,-0.223222553730011,0.016067866235971) * MODEL1_texOff(vec2(0,0));
res += mat4(-0.132607221603394,-0.237202897667885,0.006670128088444,-0.026350855827332,0.025142278522253,-0.069240994751453,-0.166112855076790,-0.046104095876217,-0.111003756523132,0.064719200134277,0.030583823099732,-0.013160551898181,0.012981329113245,0.071812599897385,0.114062666893005,-0.025332313030958) * MODEL1_texOff(vec2(0,1));
res += mat4(0.056278381496668,0.012317333370447,-0.009818049147725,-0.005812252871692,0.096867673099041,-0.013638564385474,-0.015500877983868,-0.095708377659321,0.084597110748291,-0.031329482793808,0.066627450287342,-0.074316196143627,0.121601447463036,-0.034316122531891,-0.082260593771935,0.078992038965225) * MODEL1_texOff(vec2(1,-1));
res += mat4(0.120058737695217,0.019589575007558,0.018235055729747,0.022385315969586,0.332208812236786,-0.049204181879759,-0.017379723489285,0.163797006011009,0.084338836371899,-0.044409345835447,0.054268918931484,0.048317950218916,0.291387498378754,-0.036900274455547,0.109633319079876,0.040108706802130) * MODEL1_texOff(vec2(1,0));
res += mat4(-0.024353692308068,-0.037605535238981,0.035865109413862,0.010410922579467,0.083107218146324,-0.035992749035358,0.027367023751140,0.014554996974766,0.005154944490641,0.050944477319717,0.083387412130833,0.014884584583342,0.072766296565533,0.004604357294738,-0.091865725815296,0.021431636065245) * MODEL1_texOff(vec2(1,1));
res += mat4(0.024416754022241,-0.032331213355064,-0.003784704254940,-0.066523410379887,0.036762405186892,0.153290525078773,-0.047220975160599,0.128234595060349,0.078011013567448,-0.032934933900833,0.006186708807945,0.048153735697269,-0.054302468895912,-0.010724067687988,0.034286424517632,0.011670138686895) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.210755199193954,-0.015373398549855,0.050064239650965,-0.036699313670397,0.062617242336273,0.059844765812159,0.221377283334732,-0.044803876429796,0.073799408972263,-0.120469696819782,0.046526271849871,0.012347402982414,-0.024887179955840,0.022432273253798,-0.035824269056320,-0.015691315755248) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.037070464342833,-0.070023335516453,0.118482142686844,0.009937844239175,-0.025837037712336,-0.016289623454213,0.073707453906536,-0.014241412281990,-0.005456990096718,0.061998963356018,-0.062083955854177,0.024695977568626,-0.047246672213078,-0.027629738673568,0.000487778597744,-0.005980928428471) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.032171737402678,-0.199663355946541,-0.025463627651334,0.000188174686627,0.025009294971824,0.104763984680176,-0.058858361095190,0.113758079707623,0.112748645246029,-0.191693246364594,-0.008003309369087,-0.044410757720470,0.076120793819427,-0.175301134586334,-0.024406464770436,-0.017799369990826) * MODEL2_texOff(vec2(0,-1));
res += mat4(-0.133645996451378,0.286484062671661,-0.018204193562269,-0.042926538735628,-0.112566545605659,0.084360212087631,0.047835055738688,-0.062023896723986,-0.138158336281776,-0.102881044149399,0.001119551016018,-0.067829646170139,-0.157472699880600,-0.246476814150810,0.195478796958923,0.061427023261786) * MODEL2_texOff(vec2(0,0));
res += mat4(0.023177908733487,-0.074700936675072,0.047587946057320,-0.023854041472077,0.020251221954823,-0.087776347994804,0.148072838783264,-0.026789356023073,0.019539507105947,0.145308390259743,-0.161006048321724,-0.024798158556223,0.073199667036533,0.054384842514992,-0.138699591159821,0.010216068476439) * MODEL2_texOff(vec2(0,1));
res += mat4(-0.093277923762798,0.009159694425762,-0.019020523875952,-0.068955346941948,0.030729014426470,0.021931966766715,-0.002804432529956,-0.020754868164659,0.051880512386560,-0.032278813421726,0.031720142811537,-0.003827880602330,-0.095124572515488,0.004331243690103,-0.026371043175459,0.004344933200628) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.180839687585831,0.024838797748089,0.007497383747250,-0.046717487275600,0.054255824536085,0.067346207797527,0.078470021486282,-0.005065990611911,0.148641839623451,-0.152371242642403,-0.054002854973078,0.127953708171844,0.051265366375446,0.132091730833054,0.101189002394676,0.090457893908024) * MODEL2_texOff(vec2(1,0));
res += mat4(0.063237965106964,-0.012830138206482,0.033454187214375,0.013964919373393,0.043447848409414,-0.076036818325520,0.043962139636278,0.015499947592616,0.075343802571297,0.120348639786243,-0.098568342626095,0.011433340609074,-0.026184657588601,-0.019837079569697,-0.147638916969299,0.026003763079643) * MODEL2_texOff(vec2(1,1));
res += mat4(0.026108028367162,-0.093029111623764,-0.004022437147796,0.003460266627371,0.024477224797010,-0.140530049800873,0.014478000812232,-0.049372691661119,0.030972003936768,0.074719324707985,-0.053485069423914,0.020322794094682,0.014994623139501,0.052915837615728,-0.015182552859187,-0.008062294684350) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.100514955818653,0.139968693256378,0.076702564954758,0.036690138280392,-0.085620187222958,-0.186431884765625,-0.089589260518551,0.034255534410477,-0.157030031085014,-0.001617667963728,0.090772464871407,-0.005914313253015,0.062428440898657,0.040849685668945,-0.090437375009060,-0.044182650744915) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.038051780313253,0.053419869393110,-0.019860947504640,-0.039801247417927,0.093601681292057,-0.014162647537887,-0.111358359456062,0.018821448087692,-0.069453857839108,0.003059085691348,0.107710257172585,-0.003740972606465,-0.061510719358921,-0.093274213373661,0.105734959244728,-0.027558602392673) * MODEL3_texOff(vec2(-1,1));
res += mat4(0.000155084548169,-0.093671992421150,-0.052045263350010,-0.151543602347374,-0.053462732583284,-0.079536572098732,-0.050342813134193,0.118723206222057,-0.015849409624934,0.059485379606485,0.086880929768085,-0.184838369488716,0.023474097251892,0.167241632938385,0.127867668867111,-0.169289097189903) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.233313649892807,0.230103105306625,0.152187600731850,0.146181017160416,0.141662269830704,-0.047860328108072,0.034289360046387,-0.092674501240253,0.328230589628220,-0.121408104896545,-0.098226971924305,0.160215139389038,-0.224723413586617,-0.024262111634016,-0.149688661098480,0.134670019149780) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.187529161572456,-0.005144977010787,0.080326877534389,-0.056444726884365,-0.187747746706009,-0.073210269212723,-0.284110933542252,0.024486452341080,-0.004953190684319,0.068830065429211,0.121201440691948,-0.003840377321467,0.063869804143906,0.183232903480530,0.240371569991112,-0.015570403076708) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.011822678148746,0.017523147165775,-0.042626582086086,0.041972707957029,-0.074658386409283,-0.083769179880619,-0.032225899398327,0.068435683846474,0.012492141686380,-0.034990690648556,-0.005862237885594,0.041068330407143,0.032107312232256,0.066598534584045,0.033325433731079,-0.010595443658531) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.036923728883266,0.110729925334454,-0.023092554882169,-0.004023363348097,-0.220353484153748,-0.015124049969018,0.040516819804907,0.021975956857204,-0.192136436700821,0.004703242331743,-0.001033845590428,0.014492954127491,0.115829624235630,0.103585295379162,-0.022291168570518,-0.017259281128645) * MODEL3_texOff(vec2(1,0));
res += mat4(0.019647806882858,-0.034123595803976,0.101366765797138,-0.042924333363771,0.038328766822815,0.049758478999138,0.017414337024093,0.014973582699895,0.086141131818295,-0.026644172146916,-0.029707539826632,-0.003344187978655,-0.091517187654972,0.092051416635513,0.113730616867542,-0.052190359681845) * MODEL3_texOff(vec2(1,1));
res += mat4(-0.000238708642428,-0.042582821100950,-0.013922763988376,-0.008286937139928,0.039855778217316,-0.176016390323639,0.074053093791008,-0.061821497976780,0.026449624449015,-0.061581220477819,0.063392072916031,-0.050776939839125,-0.073163129389286,0.013320128433406,0.036023721098900,-0.073881961405277) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.010672996751964,0.138651743531227,0.234958559274673,0.020123196765780,0.173353418707848,0.015461537055671,0.089351117610931,-0.052213635295630,0.167889356613159,-0.059248756617308,-0.064523778855801,-0.098920062184334,-0.172048702836037,0.000448953564046,-0.012236894108355,0.100986987352371) * MODEL4_texOff(vec2(-1,0));
res += mat4(0.010629988275468,-0.085689298808575,-0.197720155119896,-0.008191707544029,0.039616048336029,0.052908036857843,-0.052700657397509,-0.018551241606474,0.002584658563137,-0.062109861522913,-0.234557971358299,0.025531794875860,0.019977295771241,-0.023573309183121,-0.112614549696445,0.037032973021269) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.136288329958916,0.113638773560524,0.001198059646413,0.087572202086449,-0.040799826383591,0.056423980742693,0.034261640161276,0.069938018918037,-0.008049097843468,0.092397741973400,0.031189734116197,0.334960311651230,0.143934234976768,-0.095901101827621,0.095140643417835,-0.141489863395691) * MODEL4_texOff(vec2(0,-1));
res += mat4(-0.185781180858612,-0.020208075642586,0.001698319450952,0.086790412664413,-0.164442777633667,-0.026524495333433,0.082610443234444,0.071637384593487,-0.283712953329086,0.072239145636559,0.090446412563324,-0.080436743795872,0.400215327739716,0.318798691034317,-0.180229559540749,0.220268666744232) * MODEL4_texOff(vec2(0,0));
res += mat4(-0.095819883048534,0.050915550440550,0.015217802487314,0.003904967568815,-0.013004865497351,0.036797754466534,-0.081290975213051,-0.002132557798177,0.056595768779516,-0.052516125142574,0.102219447493553,-0.048351779580116,0.065554693341255,-0.083286896348000,0.061042841523886,-0.091500453650951) * MODEL4_texOff(vec2(0,1));
res += mat4(-0.062583684921265,0.036949224770069,0.126012206077576,-0.081053420901299,-0.002876849845052,-0.003849449334666,0.055723596364260,-0.016198718920350,-0.050468679517508,-0.018508147448301,0.003137581516057,-0.007662983145565,0.073694683611393,0.015226705931127,0.094313807785511,-0.032601904124022) * MODEL4_texOff(vec2(1,-1));
res += mat4(-0.106628812849522,-0.195428982377052,-0.354676067829132,-0.002558753360063,-0.076161652803421,-0.008099153637886,-0.017336864024401,-0.073635451495647,0.004450774285942,-0.003377998014912,0.018006570637226,-0.068580962717533,-0.115867502987385,0.027962544932961,-0.056893605738878,-0.022661384195089) * MODEL4_texOff(vec2(1,0));
res += mat4(-0.170777559280396,0.243993133306503,0.099796235561371,-0.007441880647093,-0.038963761180639,0.018340958282351,-0.107804648578167,0.007299822755158,-0.052077677100897,0.032349672168493,0.031840216368437,0.021612985059619,0.057618182152510,0.019579153507948,0.009295264258981,-0.007240072824061) * MODEL4_texOff(vec2(1,1));
res += mat4(0.020566726103425,0.031724218279123,-0.010838887654245,0.007745113689452,0.011804014444351,-0.015636211261153,0.033145297318697,-0.031655572354794,0.011447482742369,-0.035390570759773,0.082396812736988,-0.068226449191570,-0.044893600046635,0.061362873762846,-0.003161330707371,0.048153422772884) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.004067684523761,0.091058634221554,0.057123083621264,-0.010162766091526,0.125547438859940,-0.114069819450378,0.021658722311258,-0.049953013658524,-0.202026799321175,0.020521363243461,-0.019095445051789,-0.082103997468948,0.027243744581938,-0.095597445964813,-0.083099536597729,0.004356032237411) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.003210348077118,0.063058070838451,-0.082843832671642,-0.015057834796607,-0.064731858670712,0.015584044158459,0.158611401915550,0.003606250276789,-0.046542227268219,0.002995201852173,-0.065903007984161,-0.033876448869705,0.000656614429317,-0.003947719931602,-0.289168894290924,0.032229036092758) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.052615720778704,0.085864014923573,-0.063968129456043,0.104371763765812,-0.048838719725609,0.128891736268997,-0.027315611019731,-0.079583674669266,0.063768960535526,-0.057462278753519,-0.118391536176205,-0.021317236125469,-0.017382008954883,0.165467068552971,0.038981799036264,0.085069365799427) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.029210064560175,0.020346757024527,0.046641554683447,-0.077951237559319,-0.193718060851097,-0.145616710186005,0.014203412458301,0.205397233366966,-0.211296126246452,0.074057802557945,0.052545286715031,-0.001847194740549,0.016711460426450,-0.252308011054993,0.031875126063824,0.073944211006165) * MODEL5_texOff(vec2(0,0));
res += mat4(0.011877222917974,-0.053987413644791,-0.250206738710403,-0.083614960312843,0.080995969474316,0.206334725022316,0.189466580748558,-0.049122728407383,0.056843347847462,-0.077885568141937,-0.072283968329430,-0.079541668295860,0.052497934550047,0.035849321633577,-0.145249724388123,-0.006657460238785) * MODEL5_texOff(vec2(0,1));
res += mat4(-0.021240657195449,-0.042505510151386,-0.044463060796261,0.002501841634512,-0.009810279123485,0.030935401096940,0.016078619286418,-0.109917588531971,0.073019452393055,0.064698539674282,0.003161710454151,0.099816255271435,0.032305810600519,0.020055847242475,0.026414295658469,0.005909431725740) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.021230608224869,0.093608371913433,-0.040846422314644,-0.004141042474657,-0.082872524857521,-0.032576989382505,-0.203547015786171,-0.154424011707306,-0.320642769336700,0.186331480741501,0.152272030711174,0.025712706148624,-0.017861012369394,-0.043757624924183,-0.008187042549253,-0.073568977415562) * MODEL5_texOff(vec2(1,0));
res += mat4(0.032179910689592,0.009175158105791,-0.006952084600925,0.039847016334534,-0.076605454087257,-0.051764309406281,0.171941310167313,0.018752673640847,0.023544849827886,-0.058731909841299,0.026284702122211,0.039422221481800,0.011900867335498,-0.084532067179680,-0.043678589165211,-0.015986051410437) * MODEL5_texOff(vec2(1,1));
res += mat4(0.010980912484229,0.071662135422230,-0.082483939826488,-0.049932703375816,0.026935990899801,-0.065450660884380,-0.084273226559162,0.064240425825119,-0.007216409780085,-0.116838358342648,0.070662498474121,-0.093466550111771,-0.001035953056999,0.041233319789171,-0.030780522152781,0.031005853787065) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.149933621287346,-0.039253529161215,0.025134975090623,0.039450012147427,-0.234445899724960,0.060133524239063,0.033748656511307,-0.011684076860547,-0.123379953205585,-0.008290868252516,-0.005473306868225,-0.074526816606522,0.014248124323785,0.039575260132551,-0.059893250465393,0.005168606527150) * MODEL6_texOff(vec2(-1,0));
res += mat4(-0.020594911649823,0.001053702086210,0.124234601855278,0.040584966540337,0.003380230860785,0.006602642592043,-0.191928803920746,-0.015883458778262,-0.092533737421036,-0.029009124264121,-0.163647547364235,-0.022957567125559,0.017251469194889,-0.046943243592978,0.023812456056476,0.004284031223506) * MODEL6_texOff(vec2(-1,1));
res += mat4(-0.042474076151848,0.022758474573493,-0.089641302824020,-0.043422684073448,-0.103946536779404,0.119006335735321,0.035250704735518,-0.031761836260557,0.064115993678570,-0.049321506172419,0.078776083886623,-0.052930794656277,-0.028034955263138,0.066781125962734,0.035412378609180,-0.022337261587381) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.074321404099464,-0.072702087461948,0.130532339215279,0.124214127659798,0.289071381092072,0.113944970071316,0.024541616439819,0.075622312724590,0.036767885088921,-0.241214334964752,0.058792918920517,0.062137614935637,-0.152362227439880,0.165305390954018,-0.078137867152691,-0.077771268785000) * MODEL6_texOff(vec2(0,0));
res += mat4(0.018267996609211,0.190964385867119,0.324220716953278,0.018522651866078,0.039739139378071,-0.054066218435764,-0.233234331011772,0.028848636895418,0.023696815595031,0.121200367808342,-0.203395426273346,-0.069878250360489,-0.000371224072296,0.190824270248413,-0.431987762451172,0.002228629542515) * MODEL6_texOff(vec2(0,1));
res += mat4(-0.006436828523874,-0.072987169027328,-0.050957210361958,-0.084313251078129,-0.008373431861401,-0.026978975161910,0.050298504531384,0.101388387382030,0.030218018218875,0.009628271684051,0.033789116889238,0.063045039772987,0.046840935945511,-0.031115911900997,-0.012839440256357,-0.085579924285412) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.009656097739935,-0.047206684947014,0.000952083908487,-0.085409350693226,0.092615462839603,-0.075923144817352,-0.062226668000221,-0.015240964479744,-0.124995157122612,-0.012180328369141,-0.000699658237863,0.117447182536125,-0.084969282150269,0.069891028106213,0.010770923458040,-0.032800473272800) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.008302127942443,0.035232674330473,0.037767849862576,0.016353035345674,-0.156617850065231,0.081863172352314,-0.147717654705048,0.008527073077857,-0.118110001087189,0.037288624793291,0.118050560355186,0.039000108838081,0.044790986925364,0.009910191409290,-0.084718137979507,-0.036932069808245) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.428398609161377,0.084862098097801,0.025175299495459,0.993360280990601) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL1
//!BIND MODEL2
//!BIND MODEL3
//!BIND MODEL4
//!BIND MODEL5
//!BIND MODEL6
//!SAVE MODEL12
//!DESC [AiUpscale_HQ_4x_Photo] mapping 8_6

vec4 hook()
{
vec4 res = vec4(-0.011224774643779,-0.157695412635803,-0.226417213678360,-0.001234674593434);
res += mat4(-0.001990522956476,-0.024724019691348,0.004029274452478,0.001513228169642,0.062684364616871,-0.018079129979014,0.044345181435347,-0.034975815564394,0.021086303517222,0.059231590479612,-0.025808595120907,0.002516420790926,-0.111882679164410,-0.050176199525595,-0.039590392261744,0.027742309495807) * MODEL1_texOff(vec2(-1,-1));
res += mat4(-0.234395995736122,0.029266698285937,0.001125065493397,0.015972407534719,0.018375599756837,0.055062554776669,0.031747788190842,0.101441480219364,-0.268825173377991,0.008268490433693,0.073650099337101,0.019821953028440,-0.074334546923637,0.052199639379978,-0.013246255926788,0.002255502622575) * MODEL1_texOff(vec2(-1,0));
res += mat4(-0.289448350667953,-0.029763024300337,0.134656339883804,-0.024170139804482,0.226422801613808,0.009773683734238,-0.010141021572053,-0.024020874872804,-0.030710220336914,-0.029656542465091,-0.049618687480688,0.024976532906294,0.028894105926156,0.001925827469677,0.009038931690156,-0.009296894073486) * MODEL1_texOff(vec2(-1,1));
res += mat4(0.009699554182589,-0.016450583934784,0.001449842704460,0.005835918709636,0.149967461824417,-0.006388891953975,0.068822436034679,-0.008239380083978,0.054189573973417,0.090842872858047,0.023013845086098,0.021421637386084,-0.026394981890917,0.036520313471556,0.113129243254662,-0.010861627757549) * MODEL1_texOff(vec2(0,-1));
res += mat4(-0.012515926733613,0.045341338962317,0.076158903539181,0.029703671112657,-0.130936041474342,-0.166626974940300,-0.177493095397949,0.049659546464682,-0.059564575552940,-0.200721845030785,-0.272226691246033,-0.076742105185986,-0.026709297671914,-0.171834573149681,0.030327467247844,-0.071617379784584) * MODEL1_texOff(vec2(0,0));
res += mat4(0.036878716200590,-0.499468177556992,-0.346367090940475,-0.047825712710619,0.132430031895638,-0.020580060780048,-0.161819964647293,-0.124647900462151,0.016337696462870,0.044657107442617,-0.120302468538284,0.007676928769797,-0.006520933005959,0.055221907794476,-0.038943260908127,0.012211927212775) * MODEL1_texOff(vec2(0,1));
res += mat4(0.023170689120889,0.014309015125036,-0.004983762744814,-0.004087816458195,0.061944242566824,-0.014721497893333,0.020167216658592,0.006187942344695,0.031161690130830,0.127295210957527,0.074370644986629,0.001905834884383,-0.028446033596992,-0.098332136869431,-0.070876248180866,-0.054469812661409) * MODEL1_texOff(vec2(1,-1));
res += mat4(-0.016238516196609,0.004690792877227,-0.000058163132053,-0.000858813931700,-0.019164538010955,0.007974278181791,-0.060270600020885,-0.082296691834927,0.058723811060190,0.130306765437126,-0.006622117012739,-0.048989918082952,-0.037491701543331,0.216372162103653,0.246347367763519,-0.036827791482210) * MODEL1_texOff(vec2(1,0));
res += mat4(0.042998317629099,-0.076261952519417,0.074082084000111,-0.024827416986227,0.045969720929861,0.020353954285383,0.056484628468752,0.008849668316543,0.020890817046165,-0.004923894535750,0.049448784440756,0.019372783601284,-0.098424404859543,-0.099367126822472,-0.078746609389782,-0.008881804533303) * MODEL1_texOff(vec2(1,1));
res += mat4(0.042479079216719,0.028274644166231,-0.039279721677303,-0.003940671682358,-0.071901783347130,0.026903850957751,0.087994135916233,-0.035863302648067,0.081928990781307,-0.043201893568039,0.092295035719872,-0.013503502123058,0.003640864742920,-0.038764510303736,-0.007759650703520,-0.006660177838057) * MODEL2_texOff(vec2(-1,-1));
res += mat4(0.145494088530540,0.039784476161003,-0.071501135826111,-0.008654640056193,0.014493149705231,0.056013617664576,-0.139556005597115,0.120374180376530,0.026283899322152,0.067363567650318,0.028667714446783,0.032781004905701,-0.374263972043991,-0.013554304838181,-0.047022070735693,0.015083784237504) * MODEL2_texOff(vec2(-1,0));
res += mat4(0.182400286197662,-0.073048800230026,0.004855771083385,0.014564462937415,0.045592721551657,0.024497585371137,-0.153783306479454,-0.064158864319324,0.049058370292187,-0.019185457378626,0.011459495872259,0.006190772634000,-0.116278156638145,-0.016344748437405,0.006537364795804,-0.010932790115476) * MODEL2_texOff(vec2(-1,1));
res += mat4(0.038516435772181,0.003324468852952,0.011954450979829,0.022177537903190,0.032923404127359,-0.041510045528412,-0.119653478264809,-0.035768527537584,0.050398524850607,0.161282494664192,-0.108601614832878,-0.009173168800771,0.044381633400917,-0.015644930303097,-0.044210113584995,-0.005484207067639) * MODEL2_texOff(vec2(0,-1));
res += mat4(0.088071361184120,0.337056398391724,-0.094334602355957,0.084026150405407,0.016242945566773,-0.308429598808289,-0.037244241684675,0.085879303514957,0.023622291162610,-0.187052100896835,0.048785734921694,-0.044672559946775,-0.108992226421833,-0.097902931272984,0.046240054070950,-0.022579543292522) * MODEL2_texOff(vec2(0,0));
res += mat4(-0.024482514709234,-0.063972145318985,-0.060978930443525,0.004584638401866,-0.011170416139066,0.005583851598203,-0.001541629550047,-0.083566837012768,0.001392888138071,0.082031652331352,-0.009029972366989,-0.012668377719820,0.115903235971928,0.030775817111135,0.004079377278686,0.017853422090411) * MODEL2_texOff(vec2(0,1));
res += mat4(0.007985520176589,0.083265513181686,-0.040759321302176,0.020230241119862,0.067904286086559,0.003261159174144,-0.086553692817688,-0.012940971180797,-0.007944788783789,-0.039112776517868,0.106362424790859,-0.008232722058892,0.015505574643612,0.008969122543931,-0.123744927346706,0.003571906592697) * MODEL2_texOff(vec2(1,-1));
res += mat4(-0.003980082459748,-0.214016094803810,0.003790743649006,-0.082897417247295,0.009623353369534,-0.034331128001213,-0.179510816931725,0.000700946140569,0.094927117228508,0.003147516865283,0.045605190098286,-0.035372938960791,-0.035095591098070,-0.365486949682236,-0.435548841953278,-0.013396382331848) * MODEL2_texOff(vec2(1,0));
res += mat4(0.013300892896950,0.148613288998604,0.066684201359749,-0.013826426118612,0.019804868847132,-0.008796475827694,-0.042658887803555,-0.018937554210424,0.007829807698727,0.123347520828247,0.041381318122149,0.049865722656250,-0.016799859702587,-0.067049406468868,-0.129060059785843,0.039121858775616) * MODEL2_texOff(vec2(1,1));
res += mat4(-0.069454364478588,-0.085034869611263,-0.013263812288642,0.031168315559626,-0.002704560058191,0.010891347192228,-0.019552228972316,-0.012675301171839,0.015256971120834,0.011765458621085,-0.027184763923287,0.005999843589962,-0.032474916428328,0.028491057455540,0.030709328129888,0.050688803195953) * MODEL3_texOff(vec2(-1,-1));
res += mat4(-0.108594499528408,0.044646289199591,-0.033945590257645,-0.015098480507731,-0.290828078985214,-0.158874407410622,-0.005694230087101,0.008025077171624,0.242883309721947,-0.008501133881509,0.073526017367840,-0.053607225418091,-0.032854009419680,-0.073057167232037,0.045638445764780,-0.024593017995358) * MODEL3_texOff(vec2(-1,0));
res += mat4(0.049616072326899,-0.083643659949303,0.015886865556240,0.015842460095882,-0.001579709234647,0.019279887899756,0.031388990581036,0.003691541263834,-0.006910833530128,-0.008094990625978,0.020699903368950,0.029989287257195,0.013852556236088,-0.081688262522221,0.006297044921666,-0.001870317151770) * MODEL3_texOff(vec2(-1,1));
res += mat4(-0.046314232051373,0.024637896567583,-0.075373582541943,-0.023130005225539,0.127230048179626,-0.007272723130882,-0.026730751618743,-0.020781747996807,0.054249662905931,-0.024472065269947,0.013076124712825,0.021893784403801,0.038073103874922,0.040138807147741,0.044945664703846,0.054525513201952) * MODEL3_texOff(vec2(0,-1));
res += mat4(0.052542023360729,-0.087267570197582,-0.155434980988503,-0.013327089138329,0.043207298964262,-0.060026135295630,-0.021080343052745,0.090775787830353,0.162316471338272,0.056176580488682,-0.001897149952129,-0.149780541658401,-0.033622890710831,0.057523317635059,-0.022458115592599,-0.129482537508011) * MODEL3_texOff(vec2(0,0));
res += mat4(-0.038327306509018,-0.025713749229908,0.053480099886656,0.058338504284620,0.029688505455852,0.002027780050412,-0.123882189393044,-0.056864496320486,0.023991247639060,-0.016235718503594,-0.029457639902830,0.087712489068508,0.006494858767837,0.167225942015648,-0.119589827954769,0.132497519254684) * MODEL3_texOff(vec2(0,1));
res += mat4(-0.002207468263805,-0.033522531390190,-0.025124240666628,0.022123035043478,-0.007671161089092,0.118795625865459,0.059912700206041,-0.037677798420191,0.003579362062737,-0.035551115870476,-0.013490391895175,0.020356792956591,0.016714818775654,0.015299432910979,0.014639873057604,0.013183051720262) * MODEL3_texOff(vec2(1,-1));
res += mat4(-0.027940837666392,-0.047332245856524,0.074487902224064,0.022406185045838,0.031654559075832,-0.066967502236366,-0.003844499355182,0.092499032616615,0.010544719174504,0.065817229449749,0.149863347411156,0.042863756418228,0.015453837811947,0.004405415151268,-0.036245118826628,-0.020916415378451) * MODEL3_texOff(vec2(1,0));
res += mat4(-0.008373592980206,-0.014855286106467,-0.091822102665901,-0.007620731368661,0.031396962702274,-0.033557344228029,-0.001118689775467,-0.024611590430140,0.028125869110227,-0.087059572339058,0.069068007171154,0.005784079432487,0.009161153808236,0.023626690730453,-0.036261819303036,0.048288658261299) * MODEL3_texOff(vec2(1,1));
res += mat4(0.026935653761029,-0.063132300972939,0.043568465858698,0.011655870825052,-0.204568907618523,0.032680749893188,0.105255685746670,0.023290421813726,-0.025090049952269,-0.047589041292667,0.031639117747545,-0.005731177050620,0.029039271175861,0.059564478695393,0.006318611558527,-0.024199856445193) * MODEL4_texOff(vec2(-1,-1));
res += mat4(-0.065089128911495,0.128720283508301,-0.045988965779543,-0.007165510207415,-0.172512218356133,0.099371396005154,0.009587313048542,-0.030098516494036,0.154713794589043,0.004129704553634,-0.074072547256947,-0.000457541464129,-0.066087506711483,-0.117751508951187,0.038377016782761,-0.225933998823166) * MODEL4_texOff(vec2(-1,0));
res += mat4(-0.076393008232117,-0.085312642157078,0.015938555821776,0.016336986795068,-0.004878581967205,0.093631409108639,0.087176568806171,-0.002125781495124,-0.119514517486095,-0.006018409505486,0.125783443450928,-0.043730258941650,-0.120985798537731,-0.031334765255451,-0.057623486965895,-0.007439307868481) * MODEL4_texOff(vec2(-1,1));
res += mat4(-0.170634523034096,0.075586825609207,0.002225332893431,0.018477968871593,-0.014435350894928,0.120978951454163,0.042758867144585,0.028434732928872,0.024914771318436,0.126633033156395,-0.043388593941927,-0.035520289093256,0.033595178276300,-0.010389059782028,0.067240431904793,-0.050282102078199) * MODEL4_texOff(vec2(0,-1));
res += mat4(0.086282595992088,-0.309462696313858,-0.047467172145844,0.026526669040322,-0.082680448889732,-0.060525074601173,-0.248319253325462,0.099213041365147,-0.059991415590048,-0.035358902066946,0.353932708501816,0.213795915246010,-0.095214664936066,0.151390969753265,-0.243005052208900,0.635955512523651) * MODEL4_texOff(vec2(0,0));
res += mat4(0.001560021541081,0.153663620352745,-0.084176115691662,0.060651566833258,-0.070267491042614,-0.013287889771163,-0.039707139134407,-0.004429939202964,0.009747040458024,0.051204640418291,0.050262376666069,-0.122484050691128,-0.001122093643062,-0.102917447686195,-0.028776267543435,-0.156311944127083) * MODEL4_texOff(vec2(0,1));
res += mat4(0.017677234485745,-0.110372141003609,0.075130887329578,0.013950754888356,-0.001602892647497,-0.074309296905994,0.038850799202919,-0.028069436550140,-0.067073211073875,0.041340701282024,-0.019727459177375,-0.021942939609289,-0.007164889480919,-0.033328395336866,0.047009978443384,-0.027249701321125) * MODEL4_texOff(vec2(1,-1));
res += mat4(0.050290636718273,0.068716041743755,-0.124653033912182,-0.035021632909775,0.028159556910396,0.095241777598858,-0.076692663133144,0.001337012392469,-0.021947236731648,0.041772633790970,0.119074895977974,0.017634896561503,0.001964980037883,0.034458857029676,-0.040717966854572,-0.102124944329262) * MODEL4_texOff(vec2(1,0));
res += mat4(0.009613493457437,-0.129117086529732,0.034440632909536,0.010796721093357,0.038426078855991,0.038354888558388,-0.071333885192871,-0.032392010092735,-0.044794254004955,0.029139367863536,-0.008439494296908,-0.017788607627153,0.052858155220747,0.105925291776657,0.012723475694656,-0.029622051864862) * MODEL4_texOff(vec2(1,1));
res += mat4(-0.037850186228752,-0.046042822301388,0.037892386317253,-0.000400650053052,-0.080174900591373,-0.012709533795714,0.029913611710072,0.045022875070572,0.087203152477741,0.012503709644079,0.029225919395685,0.034924335777760,-0.101440116763115,0.000943319406360,0.008466737344861,-0.006512678693980) * MODEL5_texOff(vec2(-1,-1));
res += mat4(0.018421903252602,0.071788504719734,-0.008499351330101,0.004578033927828,0.046787511557341,0.049214743077755,-0.037998218089342,-0.047905009239912,0.482956528663635,0.024411641061306,0.022593079134822,-0.054108165204525,-0.201119780540466,0.059840179979801,0.028858229517937,0.000362610007869) * MODEL5_texOff(vec2(-1,0));
res += mat4(-0.096400864422321,0.003674218663946,-0.069322861731052,0.006693162489682,-0.142884120345116,-0.029958052560687,0.090670064091682,0.016258157789707,0.074263475835323,0.078199610114098,-0.066666901111603,0.003817494958639,-0.152421131730080,-0.028470180928707,-0.120107807219028,-0.009027975611389) * MODEL5_texOff(vec2(-1,1));
res += mat4(-0.009568340145051,0.032442908734083,-0.079202353954315,-0.002676734002307,-0.036812320351601,0.001547485124320,-0.017673505470157,-0.013383305631578,0.087245181202888,0.019433435052633,0.005659305490553,0.032008524984121,-0.038033664226532,0.084086343646049,0.125406816601753,-0.005018762312829) * MODEL5_texOff(vec2(0,-1));
res += mat4(0.037006337195635,-0.119576007127762,0.176323667168617,0.060737062245607,0.032160293310881,-0.083130188286304,0.079892881214619,0.044291079044342,0.186932563781738,0.025715248659253,-0.107461109757423,0.088942334055901,-0.030508320778608,-0.274643927812576,0.093892820179462,0.065810009837151) * MODEL5_texOff(vec2(0,0));
res += mat4(0.080446951091290,0.185183450579643,-0.228245705366135,-0.044107187539339,-0.085210882127285,0.094754293560982,0.173580288887024,0.075117193162441,-0.037467774003744,-0.077310487627983,0.107257515192032,-0.038012713193893,-0.062839031219482,-0.237235084176064,0.019525144249201,0.003242770442739) * MODEL5_texOff(vec2(0,1));
res += mat4(0.039236437529325,0.042710542678833,-0.051372401416302,-0.006884704343975,0.003650509519503,0.005867005791515,-0.007909950800240,0.042177692055702,-0.017558641731739,0.031839098781347,-0.028804576024413,-0.059464130550623,0.011001891456544,-0.079279802739620,-0.026926251128316,-0.006361288018525) * MODEL5_texOff(vec2(1,-1));
res += mat4(-0.011225895956159,-0.084712788462639,-0.038726288825274,0.007807950023562,-0.100070565938950,-0.042995095252991,0.132866114377975,-0.090434089303017,0.030620776116848,-0.088263779878616,0.024110062047839,-0.041929058730602,-0.030864143744111,0.120990715920925,0.045417279005051,0.008680828846991) * MODEL5_texOff(vec2(1,0));
res += mat4(0.000875590427313,-0.071880951523781,0.137749999761581,-0.022748326882720,0.073025248944759,-0.184901416301727,-0.232097923755646,0.012904181145132,-0.022007916122675,0.056975439190865,-0.082515560090542,-0.018319828435779,0.016100279986858,-0.009525915607810,-0.025365646928549,-0.021706607192755) * MODEL5_texOff(vec2(1,1));
res += mat4(-0.171662285923958,0.017675144597888,0.013911240734160,0.008620545268059,-0.134809404611588,0.080312788486481,-0.068551570177078,-0.018586076796055,-0.053338181227446,0.018205486238003,0.034264352172613,0.025655360892415,0.137328281998634,-0.000726474507246,-0.017108909785748,-0.010853687301278) * MODEL6_texOff(vec2(-1,-1));
res += mat4(0.190817132592201,0.056588482111692,-0.013428577221930,-0.044338829815388,-0.112379148602486,0.077911257743835,-0.010722407139838,0.003881498938426,-0.069823659956455,-0.074803151190281,0.061907947063446,-0.008948531001806,-0.073193758726120,0.086890727281570,-0.060299754142761,0.016337610781193) * MODEL6_texOff(vec2(-1,0));
res += mat4(0.072133190929890,0.022497974336147,0.096888095140457,0.043191086500883,-0.091631397604942,0.033520609140396,-0.035595573484898,-0.011650825850666,-0.071993872523308,-0.004354338627309,-0.025883343070745,0.034041583538055,-0.012989989481866,-0.049653969705105,0.015829397365451,-0.035332966595888) * MODEL6_texOff(vec2(-1,1));
res += mat4(0.025876898318529,-0.093430630862713,-0.011735261417925,-0.091977827250957,-0.074793264269829,0.085537791252136,-0.011624784208834,-0.026810817420483,0.053104110062122,-0.040908403694630,0.004451472312212,-0.005003553815186,-0.041936293244362,0.006788626778871,-0.065759673714638,0.012416639365256) * MODEL6_texOff(vec2(0,-1));
res += mat4(-0.007661028765142,-0.020110717043281,0.310174465179443,0.010820288211107,0.041744146496058,0.201578006148338,-0.062128748744726,-0.088566362857819,0.113241791725159,-0.088326916098595,-0.119695402681828,-0.129259437322617,0.158914819359779,-0.023870615288615,0.160553351044655,0.051006633788347) * MODEL6_texOff(vec2(0,0));
res += mat4(-0.052605342119932,0.035566926002502,0.112829796969891,0.042296987026930,0.023371335119009,0.002676216885448,0.001836611190811,0.017354086041451,0.032864436507225,0.007977106608450,-0.222956404089928,0.024351185187697,-0.006365855224431,0.223372116684914,0.129248604178429,-0.041352897882462) * MODEL6_texOff(vec2(0,1));
res += mat4(0.019213581457734,-0.005603557452559,0.132652863860130,-0.040449541062117,0.025225182995200,-0.045379076153040,0.066496081650257,-0.034879505634308,0.017096510156989,0.052533410489559,-0.005044733174145,-0.019311668351293,-0.019355552271008,-0.033135265111923,0.010421006940305,0.023630209267139) * MODEL6_texOff(vec2(1,-1));
res += mat4(0.027509545907378,0.169218078255653,0.065429106354713,-0.047478679567575,0.060324020683765,0.161396518349648,-0.077935159206390,0.067307807505131,0.025248195976019,-0.163091465830803,-0.020832022652030,-0.035142213106155,-0.045586943626404,0.150483086705208,0.017066067084670,-0.040246680378914) * MODEL6_texOff(vec2(1,0));
res += mat4(-0.010799871757627,-0.057557072490454,-0.060866229236126,-0.002206768607721,-0.006519358605146,0.105307072401047,0.007562185637653,-0.020361233502626,0.012459918856621,-0.072305969893932,0.023120513185859,0.053448501974344,-0.026463240385056,-0.128817424178123,0.073616437613964,0.002353712217882) * MODEL6_texOff(vec2(1,1));
res = max(res, vec4(0.0)) + vec4(0.001210506656207,0.005671586375684,0.025604955852032,1.041156291961670) * min(res, vec4(0.0));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV1
//!DESC [AiUpscale_HQ_4x_Photo] sup-pixel convolution 1

vec4 hook()
{
vec4 res = vec4(-0.000449585175375,0.000524667557329,0.000439451541752,-0.000419182732003);
res += mat4(-0.007841569371521,0.000256999279372,0.006024088710546,0.005070379003882,0.013590242713690,0.003618823830038,0.001543380785733,0.002350005786866,-0.002563935937360,-0.000289756979328,0.000214399420656,0.000480171525851,0.002116950694472,0.001638734247535,0.000952565693296,0.000365251617040) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.001783900312148,0.012858806177974,0.007526852190495,-0.011530125513673,0.036363314837217,0.044930022209883,0.042428877204657,0.030076665803790,-0.000585991307162,-0.002065814798698,-0.001831595785916,-0.001640474190935,0.002706897677854,0.001221644692123,0.002014349913225,0.002589007141069) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.000541207322385,-0.001521161990240,0.000705877668224,0.003394226310775,0.000692508998327,0.003017135430127,0.010230660438538,0.020601885393262,0.000065444459324,0.000042081170250,-0.000908750575036,-0.001277794945054,-0.000659646757413,-0.000075379124610,0.002057162811980,0.004089801106602) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.012735001742840,0.027726773172617,-0.007427348755300,-0.003950231242925,0.010999708436430,-0.002438110532239,-0.004539586137980,-0.001610704464838,0.022008692845702,0.013474212959409,0.004848510492593,0.000240972192842,-0.013278333470225,-0.000363149243640,0.001715913531370,0.000057945850131) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.019521934911609,0.031362932175398,-0.019416732713580,-0.051811102777719,0.020831378176808,0.034160196781158,0.035993929952383,0.026261845603585,0.008231438696384,0.014800976961851,0.020030019804835,0.020377613604069,-0.023565711453557,-0.042115006595850,-0.038723416626453,-0.027501804754138) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.001273529604077,-0.002803319599479,-0.003430909011513,0.000178101618076,-0.002034306293353,-0.002349587390199,-0.001284392899834,0.006319658830762,0.000143901372212,-0.000819246168248,-0.001931641600095,0.002961583668366,0.000010734547686,0.007061940152198,0.008087614551187,-0.000808355747722) * MODEL7_texOff(vec2(0,1));
res += mat4(-0.003144023008645,-0.001633920357563,0.002616237848997,-0.000035163418943,-0.003002779558301,-0.001514442847110,-0.000128228479298,0.000189133614185,0.042095176875591,0.018485816195607,0.000416663708165,-0.005457469262183,-0.002472211839631,-0.001563962199725,-0.001893459819257,-0.002972054993734) * MODEL7_texOff(vec2(1,-1));
res += mat4(-0.000735539186280,-0.004277529194951,0.001397220650688,0.003057777648792,-0.001246750820428,-0.002906613284722,-0.003684166586027,-0.002759776310995,0.010872495360672,0.035719078034163,0.054057169705629,0.059200994670391,-0.002967629348859,-0.002769772894681,-0.002459316281602,-0.002882363507524) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.002120429882780,-0.000490118283778,0.001123963389546,0.002271268982440,0.000737758120522,0.000365961546777,0.000223976079724,-0.000496198073961,0.004384773783386,0.000947005522903,-0.003072467865422,-0.002484837779775,-0.003748839022592,-0.005789451766759,-0.005475352518260,-0.003216122975573) * MODEL7_texOff(vec2(1,1));
res += mat4(0.012639542110264,0.003232854418457,-0.003700138302520,-0.004401150159538,-0.015420681796968,-0.006698657292873,-0.002286623697728,-0.002792774932459,-0.002065301639959,-0.001821176847443,0.000117674673675,-0.000762069714256,-0.024570170789957,-0.011504522524774,-0.002433571731672,0.001860254909843) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.017757914960384,-0.010238892398775,0.004957491997629,0.017694506794214,0.032949645072222,0.012888466939330,-0.016324581578374,-0.025159582495689,-0.003152307122946,-0.007635223213583,0.004460533615202,0.007175688166171,-0.007212236523628,-0.017804041504860,-0.029548713937402,-0.034086659550667) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.004918928258121,0.005583701655269,-0.001485006301664,-0.012479126453400,-0.011516182683408,-0.007034674752504,0.012933338992298,0.029242325574160,-0.002974445465952,-0.003721946850419,0.005008671898395,0.009391315281391,0.000616954581346,0.000040252616600,-0.000033532534871,-0.001054487191141) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.008343541063368,-0.004068979527801,-0.009923625737429,-0.005841255653650,0.001006862148643,0.019237341359258,0.020018395036459,0.010820888914168,-0.000631721748505,-0.001920996466652,-0.003369750687853,-0.000735348730814,-0.035621561110020,-0.023719074204564,-0.013210321776569,-0.005164642818272) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.003175708232448,0.002410782733932,0.009851899929345,0.014153337106109,-0.008245550096035,-0.025133749470115,-0.038315761834383,-0.025127414613962,-0.060708314180374,-0.000494643347338,0.032075967639685,0.002147475024685,-0.018187999725342,-0.030510652810335,-0.040680095553398,-0.044832881540060) * MODEL8_texOff(vec2(0,0));
res += mat4(0.003212367882952,0.003700018161908,-0.000606112473179,-0.005871861707419,0.003223580773920,0.007719911634922,0.009651296772063,0.001009876490571,-0.013666799291968,-0.004416995681822,0.038004912436008,0.001915850094520,-0.000144411722431,0.000638656027149,-0.000823874666821,-0.005258288700134) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.003063319949433,-0.000853301084135,0.000042903637222,-0.000017041606043,0.007020568475127,0.005154447164387,0.004360019695014,0.002009419025853,-0.000126008322695,-0.001917926128954,-0.001896720263176,-0.002319776685908,0.002092011040077,0.002738038077950,0.002543770708144,0.001959037734196) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.000415942195104,-0.000392443645978,-0.002434410387650,-0.003130577038974,0.004672416485846,0.010015926323831,0.009676292538643,0.006666086148471,0.003544742008671,-0.003511317539960,0.000519538996741,0.002858713036403,0.003497524652630,0.002832223661244,0.003374578198418,0.003361915238202) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.000942555430811,-0.000247222371399,0.000307487614919,0.000968624779489,-0.001589110237546,-0.002150485524908,-0.000481292372569,0.001038193702698,0.002289595548064,0.001083953538910,-0.004321480635554,0.000741507799830,0.001929544378072,0.002766101155430,0.001958292676136,0.002328855218366) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.002002019900829,0.004988412838429,0.003328407881781,0.001317103160545,-0.024576460942626,-0.000622913416009,0.006149778608233,0.001533905742690,-0.005290626082569,-0.002479011192918,-0.001425171736628,-0.001017713104375,0.003249601693824,0.001716245897114,0.000280300242594,0.000099940829386) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.022497849538922,0.027388593181968,-0.019172688946128,-0.024248791858554,0.037010245025158,0.035276979207993,-0.011127172969282,-0.040263935923576,-0.003670908976346,-0.004209768958390,-0.005391268990934,-0.007759383879602,0.007001212798059,0.006611428223550,0.006178830750287,0.004730794113129) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.000827169802506,-0.001136959996074,-0.005836732685566,-0.010177891701460,-0.002405335195363,-0.001941173803061,-0.001647259225138,0.009541132487357,-0.000673158210702,-0.001842621946707,-0.002787990961224,-0.003026713384315,0.001257758587599,0.003353386186063,0.004889769945294,0.006079414859414) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.005512564443052,0.000348367873812,0.003374340012670,0.002646725391969,-0.007721118163317,-0.005708674434572,-0.005680515430868,-0.005348631180823,0.008769771084189,0.006294681224972,0.002050203736871,-0.000969688815530,-0.008631752803922,-0.001974644605070,0.000253639736911,-0.000464758981252) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.016018847003579,0.023161718621850,0.009858380071819,-0.015862205997109,-0.009000004269183,0.022870507091284,0.028842765837908,0.004801052622497,0.011699924245477,0.008685478940606,0.009122465737164,0.011961448937654,-0.021666325628757,-0.028277421370149,-0.029485195875168,-0.021790366619825) * MODEL9_texOff(vec2(0,0));
res += mat4(0.001126382383518,0.006551010068506,0.004272543825209,-0.020166687667370,-0.003867894411087,-0.000733213964850,-0.005786573048681,-0.016762461513281,0.000144473218825,0.003527071094140,0.006544963922352,0.009442303329706,-0.002171830274165,-0.005036009941250,-0.007857003249228,-0.011280859820545) * MODEL9_texOff(vec2(0,1));
res += mat4(0.000766535056755,-0.002056034514681,0.000653545837849,0.000874317658599,-0.002270728582516,0.002462160075083,0.002983090700582,0.001021086354740,-0.002568320836872,-0.002153126057237,-0.001497545395978,-0.001579923555255,0.002615285106003,0.003075098618865,0.002599045867100,0.001353695290163) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.002460479503497,0.001899059163406,-0.002528625074774,0.001636236440390,-0.000290291209240,-0.001431817421690,-0.000672847963870,-0.002698844065890,-0.003455937607214,-0.002679670928046,-0.002988677006215,-0.002729954896495,0.013161785900593,0.013605102896690,0.010609677992761,0.007892244495451) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001613355707377,-0.001529443543404,0.000953362323344,0.000215201303945,0.000827116076834,-0.001139859785326,0.000212692728383,0.000723531527910,-0.001118332496844,-0.001605162513442,-0.001930813537911,-0.002699213335291,0.001226948341355,0.002490578219295,0.003858202835545,0.006445424631238) * MODEL9_texOff(vec2(1,1));
res += mat4(0.001125837792642,0.000305522786221,-0.001586272148415,0.000747822457924,0.004943732637912,0.000228122735280,0.000750033650547,0.000168744503753,-0.005128843709826,-0.003541108220816,-0.000447293074103,-0.005460710264742,-0.010091857053339,-0.000253454636550,0.002580280648544,-0.002061515348032) * MODEL10_texOff(vec2(-1,-1));
res += mat4(-0.012408629991114,0.030002694576979,0.009632637724280,-0.010699943639338,0.028060777112842,-0.009184055030346,-0.019781896844506,0.001611209358089,-0.021505082026124,-0.027695009484887,0.022936129942536,0.028715029358864,-0.034485943615437,0.006940596271306,0.031395580619574,0.005738494452089) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.003850199049339,0.007835574448109,-0.005956737790257,-0.033403132110834,-0.001439969637431,-0.009697253815830,-0.010774149559438,0.017557678744197,-0.002619250444695,-0.000211407110328,0.005769802723080,0.007271281909198,0.001364523661323,0.002390762791038,-0.003664947580546,-0.027781397104263) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.000387283042073,0.001433938508853,0.000324537744746,-0.000982756027952,0.003514471463859,0.000705640995875,-0.000809666235000,-0.001345964963548,-0.014548986218870,0.009459492750466,0.006670459173620,-0.000069124689617,0.013115023262799,0.003391487058252,-0.000109910688479,-0.002261416520923) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.040395837277174,-0.011744283139706,-0.021067848429084,-0.001837348099798,0.022384054958820,-0.027470745146275,-0.018201213330030,0.006996782962233,0.006630504038185,0.041233226656914,-0.000851603981573,-0.044193778187037,-0.026086440309882,-0.049208685755730,-0.011985862627625,0.023586248978972) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.000719319272321,-0.006353163626045,-0.011158485896885,0.026007719337940,-0.001276056515053,-0.016867831349373,-0.013922680169344,0.029352437704802,-0.005242839455605,-0.003177023259923,0.001398597727530,-0.009690192528069,0.002391991205513,0.004656551871449,0.016560364514589,0.014985320158303) * MODEL10_texOff(vec2(0,1));
res += mat4(0.003642177209258,0.004614948295057,-0.002141556702554,-0.002729533938691,-0.000605088076554,0.001306224847212,0.001063292380422,0.000436804111814,-0.004247143864632,0.003927667159587,0.006793841253966,0.002083683619276,-0.000032639483834,-0.002201319206506,-0.002141112228855,-0.001984207890928) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.000567024864722,0.000273631740129,-0.007336873561144,-0.006835962180048,0.003783757099882,0.003317795926705,-0.000141695883940,-0.001731563243084,0.000100271441624,-0.000376351934392,0.000988742569461,-0.001040974748321,0.002826466690749,0.004413751885295,0.003845384111628,0.002075735246763) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.000505700008944,0.000148899111082,-0.000769383856095,-0.002826278563589,-0.000450054067187,0.002476589288563,0.000692067435011,-0.000935087504331,0.000314685894409,0.001378513756208,0.001532532391138,0.000916750112083,0.004938139580190,0.006625688634813,-0.000384609826142,-0.002157568000257) * MODEL10_texOff(vec2(1,1));
res += mat4(0.015834638848901,0.005924881435931,0.001168956281617,-0.000989937339909,-0.006421796511859,0.000964424514677,0.002854674356058,0.001065152348019,-0.010310370475054,-0.006650334689766,0.011968496255577,0.007932356558740,0.003572774119675,-0.001166174188256,-0.003913970664144,-0.004566910210997) * MODEL11_texOff(vec2(-1,-1));
res += mat4(0.015247846953571,0.027374409139156,0.032201714813709,0.029026169329882,-0.014001951552927,-0.001531401765533,0.010779961012304,-0.003841093275696,0.004252370912582,0.003272183705121,0.000409958418459,-0.001860569813289,0.024815602228045,0.028006499633193,0.017836434766650,0.004889032337815) * MODEL11_texOff(vec2(-1,0));
res += mat4(-0.000174826462171,-0.001156437094323,-0.001898206654005,0.001826096093282,0.006628578528762,0.000287614791887,-0.004247638396919,-0.004306215792894,-0.000497926783282,-0.002458493690938,-0.000773428997491,0.003309234743938,-0.009089652448893,-0.011505128815770,-0.005334066227078,0.012052993290126) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.019068622961640,-0.007851724512875,0.000020957226297,0.003611260792241,-0.018690042197704,0.000644367944915,0.012626073323190,0.010023976676166,-0.026909239590168,-0.028843082487583,0.020896652713418,0.024601170793176,0.006064626388252,-0.002897860947996,-0.006353144533932,-0.005345913581550) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.014699374325573,-0.023552073165774,-0.029052635654807,-0.029071908444166,0.036904040724039,0.021003838628531,-0.015196134336293,-0.033764589577913,0.007649434264749,0.007955563254654,0.004829351324588,0.000790075864643,-0.015245960094035,0.001350420294330,0.011766657233238,0.012809108942747) * MODEL11_texOff(vec2(0,0));
res += mat4(0.000684277212713,0.000464203447336,-0.001067076460458,-0.005985856521875,-0.007921687327325,-0.019344257190824,-0.006892097182572,0.025961343199015,-0.003160497406498,-0.003767644753680,-0.002751545049250,0.001831982634030,-0.000806183787063,-0.005540657322854,-0.014360439032316,-0.019440632313490) * MODEL11_texOff(vec2(0,1));
res += mat4(0.005365385208279,0.002912084106356,0.000211082704482,-0.001127540133893,0.000320653576637,0.000771255348809,0.000729134364519,0.000648615066893,0.002171898959205,-0.001323367701843,-0.002328924136236,0.000902295636479,-0.001959692453966,-0.001351309008896,-0.001548414235003,-0.001495022559538) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.002747221151367,0.005022617522627,0.007074262946844,0.006803637836128,-0.005607830826193,-0.001784361666068,0.003496286459267,0.001137509359978,-0.001181796193123,-0.000660557008814,-0.001429591095075,0.000131647844682,-0.000008008866644,0.001091262907721,-0.000380100740585,-0.003082602284849) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.000465909717605,-0.000627922767308,0.000238876658841,0.002067070221528,0.000545082031749,-0.000431662076153,0.001164684072137,-0.000042304240196,0.000747791316826,-0.000156562542543,0.000668708176818,0.000685261678882,-0.001272122259252,-0.001253220951185,-0.001090415637009,-0.000587151036598) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.001291967811994,-0.001420892425813,-0.000965635641478,-0.000428540457506,0.051631163805723,0.005493936128914,-0.008121150545776,-0.001795136486180,0.034547027200460,-0.007879779674113,-0.007443815469742,0.005171974655241,-0.008260734379292,-0.010388365946710,-0.008660005405545,-0.004838999826461) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.001088219694793,-0.000103864389530,-0.000655337003991,-0.000897643563803,-0.002423107856885,-0.044974882155657,-0.029555059969425,0.045330215245485,0.015770995989442,-0.007431822363287,-0.035795144736767,0.014862148091197,0.004524529445916,0.006009343545884,0.003374729771167,-0.002716052578762) * MODEL12_texOff(vec2(-1,0));
res += mat4(-0.002653154311702,-0.004028931725770,-0.003370776306838,-0.002285405527800,-0.002597460523248,-0.001604227931239,0.005999827757478,0.013853958807886,-0.002470093546435,-0.000774235872086,-0.000324323977111,0.002769575221464,-0.003141996450722,-0.002204911084846,-0.000168026177562,0.001343674492091) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.027864793315530,0.016395244747400,0.003834889736027,-0.001556653529406,-0.003031891305000,0.002168868435547,0.000096549425507,0.002795819891617,-0.022590000182390,-0.019799998030066,0.010287329554558,0.009783024899662,0.001282853190787,-0.010924218222499,-0.013646633364260,-0.008783692494035) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.020662633702159,-0.014519052579999,0.013522085733712,0.032119948416948,0.011940605007112,0.006347351241857,-0.022554418072104,-0.024883715435863,-0.000682445301209,-0.015638530254364,0.029690353199840,0.031334586441517,0.016774926334620,0.025837756693363,0.028168931603432,0.018384620547295) * MODEL12_texOff(vec2(0,0));
res += mat4(0.011995866894722,0.019650695845485,0.014007219113410,-0.002301681786776,0.002598023274913,0.007169798482209,0.002501308452338,-0.002826914191246,0.001597880851477,-0.003008593805134,-0.004360520280898,0.010440424084663,-0.005148676224053,-0.002325620735064,0.002311743330210,0.009311114437878) * MODEL12_texOff(vec2(0,1));
res += mat4(0.016647053882480,0.002513284794986,-0.010481196455657,-0.013383022509515,0.005491660907865,0.001584093901329,-0.001012795022689,0.000004705115316,-0.000516381871421,-0.006270688027143,-0.004077339079231,0.003351409221068,-0.007224814966321,-0.004703551996499,-0.001883433200419,-0.000770376354922) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.036817554384470,-0.033239442855120,-0.000889911258128,0.019781056791544,0.000567049370147,-0.000283828121610,-0.000997584196739,0.002692647045478,-0.002274873666465,-0.003456787206233,-0.004510672297329,-0.001378633896820,-0.005900503601879,-0.007526637986302,-0.007279802113771,-0.006561344489455) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.001354502281174,0.000317846075632,-0.005092595238239,-0.016716944053769,-0.004315982572734,-0.004144454840571,0.000561494322028,0.001469726441428,0.001898300484754,0.001719629275613,0.000703576719388,-0.002093393355608,-0.001602996955626,-0.000366984284483,-0.001096182269976,-0.003273660782725) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV2
//!DESC [AiUpscale_HQ_4x_Photo] sup-pixel convolution 2

vec4 hook()
{
vec4 res = vec4(-0.001007455633953,-0.000321071653161,-0.000289895862807,-0.000859488558490);
res += mat4(-0.001533017610200,-0.004734899383038,0.001696564606391,0.005469816271216,-0.002466438803822,0.003276844741777,0.005203065928072,0.004053681623191,0.001416796236299,0.002085024258122,0.001860041404143,0.001589923631400,-0.001362476381473,-0.001190490787849,-0.000297168560792,0.001280658878386) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.001276688999496,0.003437654813752,0.002488631056622,-0.000021627038223,-0.012544571422040,-0.017035858705640,-0.016212763264775,-0.010432410053909,0.001716235419735,0.001569607411511,0.002401525620371,0.002161351498216,0.004371319431812,0.003842044388875,0.002125446218997,-0.000632987183053) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.000609029375482,-0.001401509391144,-0.000139391151606,0.002635430777445,0.001353923231363,0.003440903965384,0.001927503268234,-0.005626962985843,0.001230742898770,0.001365243806504,0.000993964960799,0.000839241547510,-0.000762258307077,0.000318283186061,0.002651230897754,0.003659378970042) * MODEL7_texOff(vec2(-1,1));
res += mat4(0.004173326306045,0.027695970609784,-0.004478886257857,-0.002713153837249,-0.006439815275371,-0.004383145831525,-0.002145652659237,-0.000269086216576,-0.001294996938668,-0.000676776340697,0.000608752656262,0.001934208441526,-0.004964694846421,-0.003403902985156,-0.003553248010576,-0.003421605331823) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.010653060860932,0.035772521048784,-0.006302895955741,-0.056193921715021,-0.023130679503083,-0.022598618641496,-0.017249776050448,-0.012782926671207,0.001184570137411,-0.000342314189766,-0.004374183248729,-0.005927950143814,-0.046848047524691,-0.041378811001778,-0.026426989585161,-0.013822322711349) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.000244577357080,-0.001873913337477,-0.002085455460474,-0.000499692803714,0.001985102891922,0.002002462744713,-0.003826177911833,-0.013417502865195,-0.000461182993604,-0.001070947502740,-0.000172393905814,0.000297951657558,0.002207310404629,-0.000015267254639,-0.010628306306899,-0.029030010104179) * MODEL7_texOff(vec2(0,1));
res += mat4(0.002360448008403,0.001452255644836,0.000868174829520,-0.000213716193684,-0.000706677965354,-0.000158485621796,0.000510980258696,0.001521028927527,0.000606674409937,-0.003049633698538,-0.003040520939976,-0.001253976835869,-0.002325657755136,0.003170091658831,0.001694415230304,-0.000470250088256) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.007288563530892,-0.001843107049353,-0.006671567447484,-0.000482984760311,-0.000129267689772,-0.002275960054249,-0.002775822300464,-0.001472075469792,-0.024677343666553,-0.022593513131142,-0.016911162063479,-0.006685128435493,-0.019734457135201,-0.022033030167222,-0.015518533997238,-0.008643618784845) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.002941889921203,-0.002260152250528,0.000514299084898,0.004332035314292,0.001983978552744,0.001991456840187,0.001660321373492,0.000583003682550,0.001705925911665,-0.002549847122282,-0.008126889355481,-0.015170043334365,0.001018112059683,0.000615084427409,-0.002480212599039,-0.009362674318254) * MODEL7_texOff(vec2(1,1));
res += mat4(0.002787063131109,-0.000132920846227,-0.002843845169991,-0.003226040396839,-0.001980393659323,0.002030120231211,0.002646977314726,0.000839265470859,0.000635525502730,-0.001390575547703,-0.001397939864546,-0.001618012785912,-0.005655447952449,-0.005653111264110,-0.004770532250404,-0.002307434566319) * MODEL8_texOff(vec2(-1,-1));
res += mat4(-0.006313587073237,-0.004216531291604,0.000544873997569,0.005450129974633,0.001698642503470,-0.008458501659334,-0.010887856595218,-0.007479604333639,-0.000066479522502,-0.003532209200785,-0.002014509169385,0.004161425866187,-0.000860393221956,-0.001203728141263,-0.001374750281684,-0.004257427994162) * MODEL8_texOff(vec2(-1,0));
res += mat4(0.002260457258672,0.002467992249876,-0.001154672820121,-0.005489771720022,-0.001024956116453,0.005351940169930,0.009075692854822,0.007387392688543,-0.001197381759994,0.002789928345010,0.002201601397246,-0.002068636706099,0.000877023383509,-0.000542725087143,-0.001408128649928,0.000163371165399) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.014752506278455,-0.001791783259250,-0.011429795064032,-0.008037374354899,0.021087843924761,0.011650140397251,-0.000585873320233,-0.008639222942293,-0.003955215215683,-0.002391969319433,-0.002655012998730,0.000357872311724,-0.025937585160136,-0.017943765968084,-0.007581426762044,-0.000356383563485) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.014983721077442,-0.003987060394138,0.012896663509309,0.023656135424972,-0.038676541298628,-0.038856193423271,-0.015508816577494,0.018428342416883,-0.058114822953939,-0.004079434089363,0.032515984028578,0.000278627092484,-0.000295833800919,-0.011022640392184,-0.023831272497773,-0.030868565663695) * MODEL8_texOff(vec2(0,0));
res += mat4(0.005771877244115,0.007162828929722,-0.000031080820918,-0.012695355340838,0.002350479597226,0.005415501073003,-0.003869243897498,-0.023033119738102,-0.011424940079451,-0.014166488312185,0.034452758729458,0.016391579061747,-0.003679031971842,-0.002632243791595,-0.000148906430695,0.002088909503073) * MODEL8_texOff(vec2(0,1));
res += mat4(-0.002329384908080,-0.000389636232285,0.000110536166176,-0.000105004670331,0.005818379577249,0.000052714265621,-0.003840033663437,-0.006308005657047,-0.000306825852022,-0.001421189401299,-0.001617467496544,-0.002831634366885,0.003208387643099,0.003827766515315,0.004615226760507,0.004265221301466) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.001562868244946,-0.000192441322724,-0.002542283153161,-0.002638458739966,0.007517786696553,0.012802051380277,0.011771185323596,0.010266376659274,-0.002210278762504,-0.001182350446470,0.005486800801009,0.003455803962424,0.005043259356171,0.004019918385893,0.002582245972008,0.002440477721393) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.001030657091178,-0.000441329873865,0.000349992740666,0.001490916474722,-0.001844134414569,-0.001918739057146,-0.000588733528275,0.001406649709679,0.002007215982303,0.006669042166322,0.000265044072876,-0.004751693457365,-0.000727936683688,0.000868945091497,0.002189502352849,0.002581485779956) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.002419548807666,0.002615200355649,0.003322076285258,0.001810426707380,-0.014474719762802,-0.005772954318672,0.002596382750198,0.000003183248737,0.008624603971839,0.002763022202998,0.000244792638114,-0.000302435102640,-0.000274831574643,0.000179800568731,-0.000067501947342,-0.000177233276190) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.013465675525367,0.010666182264686,-0.011113150045276,-0.013609753921628,0.000291193457088,0.016452325507998,0.018398664891720,-0.001578190131113,0.026671873405576,0.028973454609513,0.025042910128832,0.017726443707943,-0.002410428132862,-0.003750880016014,-0.003249904373661,-0.001945049618371) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.002452804706991,-0.005120095796883,-0.004571313038468,-0.002042291918769,-0.005047396291047,-0.004872254095972,-0.002805497031659,-0.003176335711032,-0.001965500181541,0.000646535656415,0.006436905823648,0.014779568649828,-0.000760098802857,-0.000484721560497,-0.000714047520887,-0.001253563561477) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.003697736421600,0.002590778283775,0.004465222824365,0.003627863479778,0.007100744172931,-0.005357702728361,-0.005851525813341,-0.005097215063870,0.007400939706713,0.000699213938788,-0.001544335274957,-0.000864514790010,-0.000829699798487,-0.001155212055892,-0.000643086677883,-0.000865521549713) * MODEL9_texOff(vec2(0,-1));
res += mat4(-0.007779480423778,0.040177542716265,-0.002169111045077,-0.029881635680795,-0.035776413977146,-0.012287952005863,0.034796517342329,0.038188509643078,0.027804728597403,0.029974052682519,0.024374153465033,0.017009316012263,0.006751388311386,0.003143331501633,-0.000079679157352,-0.000401154509746) * MODEL9_texOff(vec2(0,0));
res += mat4(0.001061423332430,0.007019589189440,0.003679613349959,-0.027376288548112,-0.000355027703336,0.002536269603297,0.000935380463488,-0.016934143379331,-0.004426782950759,-0.002145090838894,0.004951249342412,0.015156837180257,-0.003059329465032,-0.002758018206805,0.000107869309431,0.005367750767618) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.001468192203902,-0.002776341279969,0.000185875833267,-0.000384200480767,-0.005705278366804,-0.000600212428253,0.003131395438686,0.002488779136911,-0.003670900827274,-0.003045731689781,-0.002693193964660,-0.002426711143926,0.006622474174947,0.001483938889578,-0.001284014317207,-0.003027159487829) * MODEL9_texOff(vec2(1,-1));
res += mat4(0.000701107725035,0.002732000779361,0.001229075831361,0.002321573905647,-0.001133185927756,-0.003176021156833,-0.001912966137752,-0.004328939132392,-0.006603954359889,-0.006368342321366,-0.005968822166324,-0.004264384508133,0.021691877394915,0.022873658686876,0.018477926030755,0.014159998856485) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001461425796151,0.001010697567835,0.000596711004619,-0.002833871869370,0.002707732841372,0.000979450880550,-0.002574482699856,-0.002108900807798,-0.001499111298472,-0.002295330865309,-0.002698028460145,-0.004893848206848,-0.000684173486661,0.000622638384812,0.004636629950255,0.012583567760885) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.000314658973366,-0.000227730721235,0.000719192961697,0.000573253259063,-0.000071966955147,0.000123707606690,0.001566704246216,0.000464460201329,-0.006674381904304,-0.001132257864811,-0.001936965505593,-0.003288037143648,0.000335309014190,0.001577359274961,0.005947627592832,0.000970851222519) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.011806454509497,0.013628559187055,-0.004369647242129,-0.002181508112699,0.012112101539969,0.001132453209721,-0.011263487860560,-0.004540957044810,-0.012980647385120,-0.000793027516920,0.014132839627564,0.001996347913519,-0.017910480499268,-0.017691379413009,0.006842750590295,0.014861885458231) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.002391446148977,0.002019750652835,-0.005224142689258,-0.008931240998209,-0.003704183967784,-0.006511440966278,-0.002448543440551,0.005777783226222,0.001180917490274,0.002170056570321,0.001211322960444,-0.003380508627743,0.003409687895328,0.004907951690257,0.004236869513988,-0.003840427845716) * MODEL10_texOff(vec2(-1,1));
res += mat4(0.001777459285222,-0.001068680780008,-0.000577838101890,0.000415508751757,0.006129641551524,0.001538090640679,-0.000373014045181,-0.001533115515485,0.013595471158624,0.011783141642809,-0.002495538676158,-0.007675881963223,0.013200486078858,0.008994175121188,0.003379518864676,0.000817954831291) * MODEL10_texOff(vec2(0,-1));
res += mat4(0.008413902483881,-0.041753008961678,-0.001239340635948,0.022187769412994,0.040214121341705,-0.036778632551432,-0.023263908922672,0.013536400161684,0.038786105811596,0.031310763210058,-0.048483815044165,-0.039038803428411,0.036227416247129,-0.026721337810159,-0.050391629338264,-0.007887141779065) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.002199531532824,-0.008051980286837,0.007260029204190,0.043513037264347,0.000303276465274,-0.017562882974744,-0.021073490381241,0.041303738951683,-0.004433412570506,-0.003495916957036,-0.005100487265736,-0.004218205809593,-0.005656098946929,-0.007839233614504,0.006389239802957,0.038506459444761) * MODEL10_texOff(vec2(0,1));
res += mat4(0.004293745849282,-0.000462092051748,-0.002482004463673,0.000516698637512,-0.000052782936109,0.001026925747283,0.001223061699420,0.000952315749601,0.001206265878864,0.006869173608720,0.002673860406503,-0.003099059686065,-0.000266746006673,-0.004135651513934,-0.004044524393976,-0.003180201165378) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.001927332021296,-0.001513406401500,-0.004988705739379,0.001981876790524,0.002711425069720,0.002130984095857,-0.001498505705968,-0.002116366289556,-0.000278814433841,-0.001812244183384,-0.002673553302884,-0.002224951749668,0.002745449077338,0.007514032069594,0.007130998186767,0.003360647242516) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.000183565280167,-0.000965293729678,-0.000624761742074,-0.001384228002280,-0.001646652352065,0.000242179856286,0.002367700682953,0.001217748387717,0.001494683790952,0.002536548534408,0.001366941723973,0.000760612601880,-0.000193751766346,0.005092977546155,0.001965294824913,-0.002498059766367) * MODEL10_texOff(vec2(1,1));
res += mat4(0.001214876305312,0.001058701775037,0.000637185003143,0.000455135712400,-0.000560631859116,-0.000796512118541,-0.000431003485573,-0.000848279800266,-0.001566373743117,-0.003109649289399,0.003189128590748,0.005283699370921,0.000839142128825,-0.000894189521205,-0.002191219478846,-0.002367223147303) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.000886388763320,-0.000238950204221,-0.000202240364160,0.000695299124345,-0.008480828255415,-0.004329915158451,0.008246228098869,0.004316905047745,0.003622405463830,0.002461426192895,-0.001373271574266,-0.001399191096425,0.016759479418397,0.017011057585478,0.008904322050512,0.000754703651182) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.000723865581676,0.001140625798143,0.000230618737987,-0.001118537387811,0.003885055193678,0.002272386103868,0.000192506529856,0.000027847632737,-0.000179887487320,-0.001099588116631,0.000588998373132,0.003504614811391,-0.004668144974858,-0.005167873576283,-0.000318201200571,0.010301888920367) * MODEL11_texOff(vec2(-1,1));
res += mat4(-0.009525150060654,-0.002791441744193,0.000168168684468,0.001186074921861,-0.018122456967831,0.000327683083015,0.011017122305930,0.008888323791325,-0.033681809902191,-0.031930305063725,0.029941957443953,0.027096493169665,0.006114633753896,-0.003343684831634,-0.008250386454165,-0.007244366221130) * MODEL11_texOff(vec2(0,-1));
res += mat4(-0.008021012879908,-0.013303624466062,-0.016751818358898,-0.016447031870484,0.025510156527162,0.026627475395799,-0.004505866207182,-0.031801152974367,0.009390797466040,0.009741502813995,0.002226085169241,-0.002312081167474,-0.013279242441058,0.004021813161671,0.012262171134353,0.010231995955110) * MODEL11_texOff(vec2(0,0));
res += mat4(0.001247400185093,0.001438222127035,0.001065049902536,-0.001501335878856,-0.000718450639397,-0.017537148669362,-0.013622927479446,0.013804380781949,-0.003693955484778,-0.005377898458391,-0.004577040672302,0.001048878766596,-0.006364684086293,-0.014317937195301,-0.021673481911421,-0.020743332803249) * MODEL11_texOff(vec2(0,1));
res += mat4(0.004060110542923,0.002403773600236,0.001470816088840,0.000085281804786,-0.002692763926461,0.001615856075659,0.003685175208375,0.002814471721649,-0.000559656240512,-0.003150949720293,-0.000187669909792,0.002681910526007,-0.000849423871841,-0.001160464133136,-0.001585812191479,-0.001895324909128) * MODEL11_texOff(vec2(1,-1));
res += mat4(0.003815746866167,0.006382672116160,0.007510420400649,0.006130026653409,-0.001299671130255,-0.002888503251597,-0.001353384112008,-0.004343650303781,-0.002368089510128,-0.000976189738140,0.001880739233457,0.002246717689559,0.002733497880399,0.004978761076927,0.002898396924138,-0.000677929550875) * MODEL11_texOff(vec2(1,0));
res += mat4(-0.000494877167512,-0.001217583543621,-0.000673174043186,0.001819670433179,-0.002727379789576,-0.005483617074788,0.000179406546522,0.005262827500701,0.000523736700416,0.000057898927480,0.000300887913909,0.000586087000556,-0.000912167073693,-0.000301562569803,-0.000459316564957,0.000597309612203) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.002135369228199,-0.001290428568609,-0.000583947577979,-0.000389918888686,0.015393170528114,0.013295022770762,0.000152777429321,0.000994911533780,0.004633929580450,-0.009445583447814,0.001989928772673,0.001997811719775,-0.013527143746614,-0.011800075881183,-0.007937025278807,-0.003759877290577) * MODEL12_texOff(vec2(-1,-1));
res += mat4(-0.000226503281738,-0.000327252870193,-0.001224092440680,-0.001388750039041,0.019395228475332,0.003212304553017,-0.032188557088375,-0.021296452730894,-0.000912131275982,-0.014009824022651,-0.002246394520625,0.026118509471416,-0.008649526163936,-0.009974381886423,-0.010259804315865,-0.012041520327330) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.000074487696111,0.000759712536819,-0.000622665625997,-0.001714181038551,-0.001821676967666,-0.003126053605229,-0.000639350444544,0.007726609241217,0.000139687836054,0.001722769811749,0.000486564560561,0.001292731263675,-0.002282239263877,-0.002987756859511,-0.003534406190738,-0.005690915044397) * MODEL12_texOff(vec2(-1,1));
res += mat4(0.010979786515236,0.002814727835357,-0.002902999985963,-0.003694590879604,-0.026784414425492,-0.003881443757564,0.001761454506777,0.002722496399656,-0.047902416437864,0.003111754776910,0.021219873800874,0.005114237312227,0.002943297615275,-0.010430091060698,-0.012778320349753,-0.008117976598442) * MODEL12_texOff(vec2(0,-1));
res += mat4(-0.009064724668860,0.008662276901305,0.019138002768159,0.019650910049677,-0.002806354081258,0.022769328206778,0.008865051902831,-0.031484946608543,-0.014530180953443,0.004118941724300,0.044936865568161,-0.014747451990843,0.032354258000851,0.040656626224518,0.041824955493212,0.027194373309612) * MODEL12_texOff(vec2(0,0));
res += mat4(0.002514322288334,-0.000150494553964,-0.007128133438528,-0.014284992590547,0.002503573428839,0.009480662643909,0.003639467526227,-0.012370696291327,-0.000998935196549,-0.005470710340887,-0.003096060128883,0.006793749518692,-0.004515387583524,-0.000018072558305,0.008880589157343,0.020797347649932) * MODEL12_texOff(vec2(0,1));
res += mat4(0.017548872157931,0.004319728352129,-0.000751528656110,0.005554282106459,0.005447155330330,0.002700420096517,-0.001981456764042,-0.001585483667441,-0.003885766258463,-0.006114310119301,0.002278905827552,0.004040714818984,-0.008176072500646,-0.005774629767984,-0.003971321508288,-0.002925394801423) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.013245665468276,0.043158445507288,0.058834392577410,0.038049146533012,0.003428009338677,0.001534676062874,-0.000755440094508,0.001863256096840,-0.003041069023311,-0.003905499121174,-0.003891184227541,0.000176785877557,-0.008711342699826,-0.010959830135107,-0.009630270302296,-0.007922904565930) * MODEL12_texOff(vec2(1,0));
res += mat4(0.006508291233331,0.003655029227957,0.001735025784001,0.003836818505079,-0.002874666592106,-0.005787656642497,-0.002761961426586,0.002842096146196,0.002111705020070,0.000775319465902,-0.000193724466953,-0.001684348797426,-0.001417831983417,-0.001059614121914,-0.001887924387120,-0.004657617770135) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV3
//!DESC [AiUpscale_HQ_4x_Photo] sup-pixel convolution 3

vec4 hook()
{
vec4 res = vec4(0.000139726980706,-0.000072550712503,-0.000182488685823,0.000144489808008);
res += mat4(0.002534071914852,-0.002845813753083,-0.000918219739106,0.004102094098926,-0.009760088287294,-0.004058964084834,-0.000680672528688,0.003085528500378,0.002867916831747,0.001961312256753,0.002177392598242,0.001710907439701,-0.002970587229356,-0.002328651025891,-0.001386534073390,0.000531480531208) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.001313689397648,-0.000161200456205,-0.003601817646995,-0.000375272589736,-0.011627223342657,-0.011983811855316,-0.012813458219171,-0.015279229730368,0.001882883952931,0.002263251459226,0.002473953645676,0.002712984802201,-0.001702186418697,-0.003650850849226,-0.003852193709463,-0.004111020360142) * MODEL7_texOff(vec2(-1,0));
res += mat4(-0.000431622349424,-0.000669895962346,-0.000881775631569,0.001237816526555,0.001176394405775,-0.001974590588361,-0.005327143240720,-0.007144514936954,0.001315400935709,0.001632331521250,0.001341605675407,0.001091065118089,-0.000525345734786,-0.000005088762009,-0.000199213594897,-0.000610185030382) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.008736905641854,0.019971800968051,0.003430594922975,-0.000894257100299,-0.019775038585067,-0.006919433362782,-0.001021280768327,0.000213939289097,-0.007156434468925,-0.003667315701023,-0.001547340885736,0.001642237766646,0.007826513610780,-0.003212997224182,-0.005207170266658,-0.004417544230819) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.001734301680699,0.028723074123263,0.007567939348519,-0.044258628040552,-0.043705962598324,-0.056731466203928,-0.053368277847767,-0.038644224405289,-0.001436928869225,-0.001988156232983,-0.006158095318824,-0.011225444264710,0.012425050139427,0.022578790783882,0.023825528100133,0.020823584869504) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.000927288958337,-0.002261323621497,-0.000205419928534,0.000199967136723,0.002852924633771,0.001734309946187,-0.008244854398072,-0.023411026224494,-0.000727936567273,-0.001445530215278,-0.000955199648160,-0.001764317741618,-0.000820381159429,-0.002853481099010,-0.002029345603660,0.001914280001074) * MODEL7_texOff(vec2(0,1));
res += mat4(0.008576722815633,0.006522502284497,-0.003504981053993,-0.001175378100015,-0.000597429287154,0.000423611432780,0.001537427771837,0.001407306408510,-0.047975372523069,-0.030620118603110,-0.011329787783325,0.001167301670648,0.003520409343764,0.004400147125125,0.003181081963703,0.002465077443048) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.013757875189185,0.005270592402667,-0.012853189371526,-0.010313436388969,-0.001942163566127,-0.004427247215062,-0.004040701314807,-0.001010816078633,-0.017379147931933,-0.034032978117466,-0.052532885223627,-0.063025198876858,0.016361396759748,0.018245754763484,0.015335019677877,0.009281757287681) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.002864286769181,-0.003355562454090,-0.000868334551342,0.004859606269747,0.000750061008148,0.002214705105871,0.001878645736724,-0.000902201514691,-0.001638968009502,-0.000617601966951,0.003454178571701,0.001272459048778,-0.001313825952820,-0.001708172145300,0.000835284416098,0.006182792130858) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.002665200969204,-0.002143370686099,-0.002610968425870,-0.001968258060515,0.003264330560341,0.004862783942372,0.004981871228665,0.003955702297390,0.002120421966538,-0.001668787444942,-0.002167247235775,-0.001716312952340,0.005477610975504,0.001147913048044,-0.002449405845255,-0.004473270382732) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.001991654513404,0.000499788613524,-0.000492732564453,-0.001243937993422,-0.010052224621177,-0.008201478049159,-0.004054080694914,-0.001005687518045,-0.005555310286582,-0.002170827938244,-0.003201847663149,0.002174379769713,-0.003223006846383,0.000875280762557,0.005544220563024,0.007512585725635) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.000005967292964,0.000280767126242,0.000021145884602,0.000992780551314,0.002485594479367,-0.000680413562804,-0.006230975501239,-0.009028340689838,-0.002643500221893,0.005160265136510,0.005834986455739,-0.007130638230592,0.000059100057115,-0.000559884880204,-0.000845178205054,-0.001735550933518) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.016676597297192,0.000473236781545,-0.009826677851379,-0.008663721382618,0.010751227848232,-0.005133820232004,-0.009560112841427,-0.006929338909686,-0.005412646103650,-0.003346395445988,-0.002250302117318,0.000089410925284,0.048377342522144,0.028963206335902,0.013087660074234,0.003420288674533) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.023091061040759,-0.009837710298598,0.012286898680031,0.028217768296599,-0.007419876288623,0.020805779844522,0.041166651993990,0.034694835543633,-0.036282747983932,-0.009436395950615,0.026299148797989,0.004683356732130,0.017314432188869,0.036621179431677,0.053773362189531,0.060977630317211) * MODEL8_texOff(vec2(0,0));
res += mat4(0.007978488691151,0.009280890226364,-0.000656139920466,-0.018084088340402,0.004909985233098,-0.000191420491319,-0.012152148410678,-0.017455704510212,-0.006554836407304,-0.017513118684292,0.021379852667451,0.025414517149329,0.002347354311496,0.000451315223472,0.001353833475150,0.004474339075387) * MODEL8_texOff(vec2(0,1));
res += mat4(0.000436060683569,-0.000001072360419,-0.000994627829641,-0.001450634794310,-0.011024511419237,-0.010981648229063,-0.007251495495439,-0.002735843649134,0.002058067359030,0.000127368824906,-0.002021824708208,-0.001872101565823,0.011630392633379,0.006304749287665,0.002080401172861,-0.000254884129390) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.002952475799248,0.002029325347394,0.001096832915209,0.000863608438522,0.006174560170621,0.007291193585843,0.003696832340211,-0.003980437759310,-0.015587510541081,0.000890071911272,0.009308611042798,0.002193042775616,0.002974111586809,0.008330215699971,0.010775892995298,0.012681096792221) * MODEL8_texOff(vec2(1,0));
res += mat4(-0.000934704556130,-0.000775320746470,-0.000314522156259,0.001127207069658,-0.000953394803219,-0.001718472456560,-0.000294690282317,0.002295973245054,-0.001798676676117,0.008166238665581,0.009918830357492,-0.007758597843349,-0.000494307896588,-0.001155270845629,-0.000733913795557,-0.000350419111783) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.002510045422241,0.001414203317836,0.002613303251565,0.001917841611430,0.006219773087651,0.003965975251049,0.005307250190526,-0.000971427187324,0.003163322573528,0.003184655914083,0.002445781137794,0.000444218778284,-0.002981413388625,-0.001213251613081,-0.000968329550233,-0.000402912934078) * MODEL9_texOff(vec2(-1,-1));
res += mat4(0.003760058432817,0.002593155251816,-0.002842674264684,-0.007629527244717,-0.008148685097694,-0.006304906681180,0.006522784475237,0.014070610515773,0.002804283751175,0.000046589470003,0.000406755512813,0.003070490434766,-0.005919966381043,-0.006862914655358,-0.006882759742439,-0.005805236287415) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.002322650747374,-0.003710668766871,-0.000708083040081,0.001254607457668,-0.003232147777453,-0.005325298290700,-0.003737254766747,-0.001779091544449,-0.000891017145477,0.001388753647916,0.002734057372436,0.002318083541468,-0.001703078276478,-0.002123486716300,-0.002575422404334,-0.003848246531561) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.002752940636128,0.003607164602727,0.005045419093221,0.003307785838842,0.024656021967530,0.005997756961733,-0.002130479551852,-0.003012793371454,-0.002716894261539,-0.002964734332636,-0.000808555341791,0.002269468968734,0.007377871777862,0.002167605096474,-0.000398059870349,-0.001417907071300) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.009534229524434,0.049761410802603,-0.014517596922815,-0.035431295633316,-0.011267043650150,-0.047552924603224,-0.023469673469663,0.025821859017015,-0.002967397449538,-0.000246741488809,-0.002460778690875,-0.006884003989398,0.014854240231216,0.016105102375150,0.016254825517535,0.014779355376959) * MODEL9_texOff(vec2(0,0));
res += mat4(0.000771792780142,0.004354680888355,0.000835709681269,-0.026139417663217,-0.001670157769695,-0.000213464387343,0.007280354388058,0.011965697631240,-0.000697737792507,-0.002170027466491,-0.000580390682444,0.000530276447535,-0.000898936181329,0.001598946517333,0.005453562829643,0.009933815337718) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.001458011684008,-0.002262955531478,-0.001305443118326,-0.000649472640362,-0.002279878593981,-0.001162283821031,0.000473365711514,0.001945327967405,-0.001558100455441,-0.001697613275610,-0.001869828091003,-0.000585139903706,0.005927358753979,0.000816267856862,-0.002998968819156,-0.004728100262582) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.003703669412062,0.004668591078371,0.004648654721677,0.001221627695486,0.002655449556187,-0.001209396286868,-0.004129581153393,-0.003271141322330,-0.003540895646438,-0.003054268192500,-0.002344342647120,-0.002032416174188,-0.003665111493319,-0.001389360753819,0.003137312131003,0.007226999383420) * MODEL9_texOff(vec2(1,0));
res += mat4(-0.001105820760131,0.002924974309281,0.000530443794560,-0.007273670285940,0.001851614797488,0.004936958197504,0.000298880680930,-0.000483143230667,0.000049233472964,-0.001125393202528,-0.000916705117561,-0.001886042067781,-0.000572254939470,-0.000907905399799,-0.001785122556612,-0.002680397592485) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.002707220381126,0.000753335829359,0.002149393782020,0.000119040392747,-0.001376153435558,0.000423913937993,0.001411013538018,0.000429335254012,-0.001839179894887,-0.002267816569656,-0.000934781448450,0.000860559171997,-0.000674575567245,-0.004431613720953,0.003365808166564,0.004594801459461) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.006773189641535,0.001221619313583,-0.004134648479521,-0.001138049294241,0.003660436021164,0.003374418942258,-0.006478149443865,-0.005632420536131,-0.000478318193927,0.003428945317864,0.001983804162592,-0.001584356999956,0.000041099567170,-0.009752482175827,-0.004601465538144,0.007953379303217) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.000829418713693,0.003358816495165,-0.000585646426771,-0.003179490100592,-0.003599502611905,-0.004862126428634,0.001551428344101,0.002357598859817,-0.000480918999529,-0.002126457868144,0.001570460735820,0.002211459446698,0.004628255963326,0.008114081807435,0.006272532977164,0.004229602403939) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.004551677033305,-0.001633083797060,-0.003208957612514,-0.001849380554631,0.007357397116721,0.001969121396542,0.000095522584161,-0.001286639249884,0.034178361296654,0.000248190714046,-0.005120384506881,-0.005803132429719,-0.006641797721386,0.007869107648730,0.006161838304251,0.002861060900614) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.055873941630125,-0.033127553761005,0.035684864968061,0.020654875785112,0.049370739609003,-0.033871907740831,-0.027662465348840,0.012528203427792,0.042743675410748,-0.025205405429006,-0.055935401469469,0.021870354190469,0.066225133836269,0.048879116773605,-0.030030960217118,-0.042884044349194) * MODEL10_texOff(vec2(0,0));
res += mat4(-0.005281028803438,0.000078153258073,0.025137605145574,0.010441852733493,0.001216812641360,-0.013738496229053,-0.024942109361291,0.038748033344746,-0.003823872655630,-0.006618014071137,-0.007577251642942,0.017979143187404,-0.004357801750302,-0.012675597332418,-0.019317267462611,0.006223832722753) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.003944749478251,-0.002528042532504,0.001723016728647,0.000933023169637,-0.000772917526774,0.000504505413119,0.000691425171681,0.000144816556713,0.004892072640359,0.002650634152815,-0.002285199472681,-0.001891804276966,0.001396424486302,-0.002516316715628,-0.004008606076241,-0.003191921394318) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.003429862437770,-0.001252047717571,-0.000176519009983,0.003971953876317,0.001587108359672,-0.003109049750492,-0.002682875376195,-0.001852935296483,-0.002276060404256,-0.000637807359453,0.002293347846717,0.002839288441464,-0.008679305203259,0.004790475126356,0.009987539611757,0.005168926436454) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.000760636350606,-0.000023720660465,-0.001446183305234,-0.002804680727422,-0.003140995744616,-0.005987538956106,0.000773310894147,0.006785481702536,0.000107855645183,0.000372243841412,0.001047779456712,0.001498051686212,-0.002411677269265,-0.000821520108730,0.000445777521236,-0.008614419959486) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.009066837839782,-0.003449467243627,-0.001090890844353,-0.000280497770291,0.001216123579070,-0.000828131916933,-0.000465258839540,-0.000415464077378,0.002595408121124,-0.002523927018046,-0.000586735841352,0.004469807725400,-0.002830695360899,-0.002151415217668,-0.001370020327158,-0.001194613636471) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.009369835257530,-0.016415895894170,-0.017619527876377,-0.014860862866044,0.000644555955660,-0.000534810649697,0.004234598483890,0.003999121487141,0.002263642149046,0.001337691093795,-0.002260818844661,-0.000140550007927,0.003440238535404,0.003551485482603,0.000242829672061,-0.002588052069768) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.001992134843022,0.002576119964942,0.000542043708265,-0.002221119124442,0.002290111035109,0.001019759569317,0.000856362457853,0.003312305547297,0.000262576155365,0.000314105534926,0.001339774695225,0.002027498558164,-0.001949184341356,-0.001744816196151,-0.000187902827747,0.002339085098356) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.002538334578276,0.001916556269862,0.000985598191619,-0.000737529597245,-0.013238329440355,0.001313732354902,0.007894498296082,0.006241398397833,-0.032207403331995,-0.026202952489257,0.029287301003933,0.021271117031574,0.006353258620948,-0.003565822495148,-0.008491039276123,-0.007205849513412) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.006488308310509,0.007041163742542,0.007727218326181,0.007058286573738,0.000548277806956,0.015787744894624,0.003978611901402,-0.022885965183377,0.010691119357944,0.010057398118079,0.001160914078355,-0.003085293108597,-0.001703674439341,0.011729674413800,0.015445656143129,0.009356442838907) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.000023829765269,0.000261969311396,0.000160915791639,0.002443012548611,0.005218790844083,-0.008003872819245,-0.012609929777682,-0.000507152057253,-0.003559858072549,-0.006149508990347,-0.004591367673129,0.002192151034251,-0.009967779740691,-0.019153904169798,-0.020931540057063,-0.010833448730409) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.002408675616607,-0.000646139378659,0.001673756283708,0.001978980144486,-0.007984643802047,0.000494448351674,0.007327940315008,0.006353247445077,-0.006222484167665,-0.008752564899623,0.003938392270356,0.006874499842525,0.003391724545509,0.000456957845017,-0.001500375685282,-0.001965378411114) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.000687756342813,-0.001388436648995,-0.002422640332952,-0.003708788193762,0.011658987961709,0.001838252646849,-0.006778273731470,-0.011668504215777,-0.001029065228067,0.000137047201861,0.003359813475981,0.002906801179051,0.006127516739070,0.009932246059179,0.008733962662518,0.005991875659674) * MODEL11_texOff(vec2(1,0));
res += mat4(0.000081707148638,-0.000693198933732,-0.001021567266434,-0.000084157582023,-0.003912279848009,-0.008918350562453,-0.001877007773146,0.013309730216861,-0.000430066895206,-0.000512000115123,-0.000060586680775,0.001298288116232,0.000599972670898,0.000874074525200,0.001105721108615,0.001988589297980) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.001390849938616,-0.001499558100477,-0.000159577219165,0.000448208505986,-0.016499668359756,-0.001941749127582,-0.004854239523411,-0.001643435447477,-0.006984970066696,-0.001657013082877,0.000452499720268,-0.002379385055974,-0.012739128433168,-0.010282527655363,-0.006776357069612,-0.002968449145555) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.000623950792942,-0.000829688506201,-0.001236312557012,-0.000462867727038,0.012484211474657,0.022150658071041,0.001646818243898,-0.026954915374517,0.001221986487508,-0.002036461606622,0.005747474730015,0.006473115645349,-0.011937970295548,-0.014694964513183,-0.014312091283500,-0.013268723152578) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001354345004074,0.001951545244083,0.000469472230179,-0.000525904993992,-0.002407442312688,-0.003907643724233,-0.001769664348103,0.001446095760912,0.002666341140866,-0.000088176457211,-0.004454248584807,-0.000289318675641,-0.002233238192275,-0.003087122226134,-0.004087668843567,-0.006789967417717) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.001837449613959,-0.002164025092497,-0.002237902022898,-0.001181610045023,-0.028009235858917,-0.020975291728973,-0.002210605889559,0.001178743783385,-0.019218141213059,0.027649907395244,0.005676425062120,-0.003278708085418,0.001660677487962,-0.010926670394838,-0.012537612579763,-0.007691352628171) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.008289753459394,0.010331418365240,0.005774796940386,0.001550458022393,-0.035874240100384,0.000131260516355,0.054819718003273,0.023767841979861,-0.001516554504633,0.040679179131985,0.008668630383909,-0.066282823681831,0.036274183541536,0.038860592991114,0.037553921341896,0.025045573711395) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.004268686287105,-0.007028387393802,-0.006360997445881,-0.000921241648030,0.000053357955039,0.006907156202942,0.005106010939926,-0.015740510076284,-0.001660142559558,-0.003672454506159,-0.001163081149571,-0.003995608538389,-0.004749053623527,-0.001301024109125,0.009017785079777,0.024314796552062) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.034211542457342,-0.015115156769753,-0.000913642230444,0.005345618817955,0.001512010931037,0.001657695509493,0.000385233259294,-0.000801057089120,0.000079080651631,-0.000544072245248,0.004136104136705,-0.001508340239525,-0.006157905329019,-0.007186111994088,-0.006733254063874,-0.005026354454458) * MODEL12_texOff(vec2(1,-1));
res += mat4(0.030103107914329,0.014117033220828,-0.021167939528823,-0.042225301265717,0.005180377047509,0.000472982210340,-0.000629455724265,0.001550361048430,0.001757713267580,-0.001628946163692,-0.001849096384831,0.005803622305393,-0.006238775793463,-0.007410769816488,-0.004443029407412,-0.002805228345096) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.009676204994321,-0.010402735322714,-0.000498149951454,0.016077727079391,-0.000094409551821,-0.001184670371003,-0.003714703023434,0.001228383393027,0.001538619049825,0.000298552127788,-0.000522205373272,0.000265837763436,-0.001330845872872,-0.002751930849627,-0.003892169101164,-0.004559202585369) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!COMPONENTS 4
//!BIND MODEL7
//!BIND MODEL8
//!BIND MODEL9
//!BIND MODEL10
//!BIND MODEL11
//!BIND MODEL12
//!SAVE SUBCONV4
//!DESC [AiUpscale_HQ_4x_Photo] sup-pixel convolution 4

vec4 hook()
{
vec4 res = vec4(0.000720555370208,0.000677922158502,0.000503780320287,0.000646695611067);
res += mat4(0.002891338430345,-0.001715268241242,-0.003098058048636,0.002641392638907,-0.006519971415401,-0.004634656943381,-0.004719471558928,-0.002355476375669,0.001259192009456,0.000449017446954,0.000277807557723,-0.000054377847846,-0.001887238235213,-0.001881103729829,-0.001729215262458,0.000110684566607) * MODEL7_texOff(vec2(-1,-1));
res += mat4(0.001208004541695,-0.000672287831549,-0.005313011351973,-0.002758624730632,-0.005905880127102,-0.004691088106483,-0.002931976690888,-0.006851011887193,-0.000029874567190,0.000106499021058,-0.000214542262256,0.000342243438354,-0.002235752996057,-0.002734650857747,-0.002314379904419,-0.002067858120427) * MODEL7_texOff(vec2(-1,0));
res += mat4(0.000378952361643,0.000263260677457,-0.000720180105418,0.000636951997876,-0.001499055768363,-0.003820130834356,-0.003871768945828,-0.001776108401828,0.001222526538186,0.001556266564876,0.000405992352171,-0.000056662200222,0.000509254925419,0.000567160954233,-0.000086287953309,-0.001358328503557) * MODEL7_texOff(vec2(-1,1));
res += mat4(-0.014542647637427,0.011457366868854,0.009037578478456,0.000917937431950,0.006380371283740,-0.002005301415920,-0.001104102004319,0.002957429038361,-0.005917128175497,-0.003386952215806,-0.002682520775124,-0.000897895079106,0.005074431654066,-0.000827753334306,-0.002077628625557,-0.004018611740321) * MODEL7_texOff(vec2(0,-1));
res += mat4(0.001720183645375,0.023004779592156,0.011022650636733,-0.030420338734984,0.034629002213478,0.044296775013208,0.040582556277514,0.024304321035743,-0.004105738364160,-0.004784169141203,-0.005652425810695,-0.007583413738757,0.018061732873321,0.015142856165767,0.013011400587857,0.014153589494526) * MODEL7_texOff(vec2(0,0));
res += mat4(-0.001086976844817,-0.001874090288766,0.000645971274935,0.001432174351066,0.002161468844861,-0.000373253540602,0.002414136659354,0.016123067587614,-0.001311798114330,-0.002029956318438,-0.002734726993367,-0.003587307408452,-0.004175001289696,-0.002481830306351,0.002108754357323,0.010462297126651) * MODEL7_texOff(vec2(0,1));
res += mat4(0.011734248138964,0.014593995176256,-0.005950707942247,-0.001870287000202,0.001955050276592,-0.002403016202152,-0.002307309070602,-0.001458018436097,0.006213360000402,0.003693051636219,0.002387042157352,0.001812129630707,0.002780164126307,0.005037934519351,0.005787359550595,0.005480965599418) * MODEL7_texOff(vec2(1,-1));
res += mat4(0.016314750537276,0.015211032703519,-0.015968458727002,-0.026374155655503,0.007505515590310,0.010260255075991,0.009777607396245,0.008361572399735,0.015812102705240,0.022082958370447,0.020242698490620,0.009276505559683,0.054388858377934,0.044932086020708,0.027737256139517,0.010713683441281) * MODEL7_texOff(vec2(1,0));
res += mat4(-0.003214419353753,-0.003894675988704,-0.002084931591526,0.003180551109836,-0.002972344402224,-0.001648955396377,-0.001557640964165,0.000319017824950,0.000963826605584,0.001090974779800,0.003493117168546,0.010793365538120,-0.003469051094726,0.000807599455584,0.015796385705471,0.036977585405111) * MODEL7_texOff(vec2(1,1));
res += mat4(-0.002336649689823,-0.001080749090761,-0.001438995590433,-0.000405935046729,0.003674733452499,0.004114351235330,0.004647365305573,0.004325925372541,0.002067166613415,-0.000693641486578,-0.001840702141635,-0.001015194458887,0.003194591728970,0.002475323388353,0.000914883916266,-0.001185752218589) * MODEL8_texOff(vec2(-1,-1));
res += mat4(0.004374313633889,0.001647944096476,-0.001322625437751,-0.002779111033306,-0.005772646982223,-0.003807967295870,-0.001481927698478,0.000881563231815,-0.005318093113601,0.001883364515379,-0.001812689937651,-0.000877029728144,-0.000217045453610,0.002176398877054,0.002121448982507,0.001975645311177) * MODEL8_texOff(vec2(-1,0));
res += mat4(-0.000349981623003,-0.000015402391000,0.000490805075970,0.003079296788201,-0.000756888359319,-0.004758212715387,-0.005837195087224,-0.005156411323696,-0.001415279577486,0.004090400878340,0.004590986762196,-0.007270214613527,0.000157278758707,-0.000309427763568,-0.000480044458527,-0.001026570331305) * MODEL8_texOff(vec2(-1,1));
res += mat4(0.015504195354879,0.001862914301455,-0.007302559912205,-0.007272509392351,-0.015911540016532,-0.012100521475077,-0.005236127879471,0.000131264314405,-0.005067212507129,-0.003955960739404,-0.000577024416998,-0.000807112490293,0.022491173818707,0.017822740599513,0.009893571026623,0.001983160385862) * MODEL8_texOff(vec2(0,-1));
res += mat4(-0.025810871273279,-0.013800853863358,0.010274454019964,0.027073580771685,0.038346033543348,0.045712035149336,0.019762326031923,-0.010658345185220,-0.019869191572070,-0.015366261824965,0.017904283478856,0.010963259264827,-0.002573997946456,0.004528138786554,0.013039639219642,0.022669130936265) * MODEL8_texOff(vec2(0,0));
res += mat4(0.007309106644243,0.008196774870157,-0.001465622684918,-0.018619587644935,-0.006206168793142,-0.013170433230698,-0.004708200693130,0.015002443455160,-0.006046642549336,-0.010710822418332,0.015664957463741,0.023670103400946,0.002641312312335,0.001694940961897,0.001289513777010,-0.002590949181467) * MODEL8_texOff(vec2(0,1));
res += mat4(0.004349307622761,-0.001151704695076,-0.004856503568590,-0.004381379112601,-0.019914731383324,-0.002827128628269,0.006537077017128,0.006486390717328,0.002568177878857,-0.000245250819717,-0.003399208420888,-0.001448404276744,0.007227484602481,0.000519391149282,-0.005679854191840,-0.006308477837592) * MODEL8_texOff(vec2(1,-1));
res += mat4(0.002430316759273,0.004157900810242,0.005645601544529,0.006437278818339,0.001684342510998,-0.006940721068531,-0.020107552409172,-0.029012862592936,-0.033650647848845,0.001138842548244,0.017172662541270,0.001721696113236,-0.008305011317134,-0.001448659924790,0.005677124485373,0.008595082908869) * MODEL8_texOff(vec2(1,0));
res += mat4(0.000026749665267,0.000093347473012,-0.001515447045676,-0.001493713119999,0.001317974878475,0.002689552493393,0.004958085715771,0.003768602851778,-0.007721662521362,0.000873250013683,0.019818764179945,-0.004564207047224,0.002594007179141,0.000480754446471,-0.002215083688498,-0.004362631589174) * MODEL8_texOff(vec2(1,1));
res += mat4(-0.000373587681679,0.000606391520705,0.001530876383185,0.001612049643882,0.003058000933379,0.003270719898865,0.007347317412496,0.003510771086439,-0.000659738609102,0.000485512224259,0.000968568201642,0.001064385520294,-0.001811845810153,-0.000197710221983,0.000024977540306,0.000210455109482) * MODEL9_texOff(vec2(-1,-1));
res += mat4(-0.000000570949737,0.001703665009700,0.000691647990607,-0.002906766720116,-0.003088592551649,-0.006664632353932,-0.005206618458033,0.002952139358968,-0.004931015893817,-0.005068140570074,-0.004846176598221,-0.003957455046475,-0.004439857788384,-0.004785343073308,-0.004518780857325,-0.003986829426140) * MODEL9_texOff(vec2(-1,0));
res += mat4(-0.000058588437241,-0.001483149011619,0.000518683460541,0.001210724469274,-0.001244690734893,-0.002963429549709,-0.003796111792326,-0.000540725013707,0.000660273828544,0.000707112776581,-0.000197127767024,-0.002266391180456,-0.001259049633518,-0.001591115142219,-0.001419086125679,-0.001879884744994) * MODEL9_texOff(vec2(-1,1));
res += mat4(-0.002626989036798,0.006043406203389,0.005093114450574,0.002204069169238,0.003910792525858,0.012713909149170,0.005943460389972,0.000070194088039,-0.014954806305468,-0.004572857636958,-0.001398649765179,-0.000767298159190,0.006754051428288,0.003148104529828,0.001319901319221,-0.000036005887523) * MODEL9_texOff(vec2(0,-1));
res += mat4(0.023501414805651,0.045623809099197,-0.020380495116115,-0.033927150070667,0.043915923684835,-0.006710934918374,-0.056640181690454,-0.034335084259510,-0.045526597648859,-0.050122309476137,-0.044267363846302,-0.034455429762602,0.015712821856141,0.017227098345757,0.015949513763189,0.014010169543326) * MODEL9_texOff(vec2(0,0));
res += mat4(-0.001110781682655,0.002461317693815,-0.003379507223144,-0.019522821530700,-0.002533555729315,-0.002248877659440,0.003304064972326,0.026382584124804,0.001664459705353,-0.002468968275934,-0.009999451227486,-0.022757196798921,0.000826602627058,0.004171452950686,0.007800552994013,0.010046336799860) * MODEL9_texOff(vec2(0,1));
res += mat4(-0.003424861934036,-0.002915565390140,-0.000046277495130,0.001039027352817,0.000109796586912,0.000318409118336,-0.001693313010037,-0.000965712126344,0.004795052576810,0.003578629344702,0.001300696516410,0.000722931115888,-0.003229300957173,0.000982738216408,0.000156862777658,-0.001614775159396) * MODEL9_texOff(vec2(1,-1));
res += mat4(-0.011350146494806,0.008188511244953,0.007404741365463,-0.003251940710470,0.008429352194071,0.013554438948631,0.003505013184622,-0.003050394123420,0.001932982355356,0.000314289412927,0.002204746240750,0.004515820648521,-0.037593863904476,-0.038669139146805,-0.030912838876247,-0.017685005441308) * MODEL9_texOff(vec2(1,0));
res += mat4(0.000288780545816,0.004284294787794,0.003133530961350,-0.011615668423474,-0.003210417227820,0.002403499325737,0.001431410200894,-0.000013684914848,0.003702142741531,0.005044679157436,0.005566778592765,0.004853708669543,-0.000272405071883,-0.003595724701881,-0.011442334391177,-0.023537863045931) * MODEL9_texOff(vec2(1,1));
res += mat4(-0.002435616217554,0.001219216268510,0.001758546452038,0.000108094573079,-0.002062910934910,0.000512862519827,0.001367586897686,0.000439503201051,-0.001610522507690,-0.002428883453831,0.000752105086576,0.002128830179572,0.001664039446041,-0.005723609589040,-0.003564215963706,0.002680390607566) * MODEL10_texOff(vec2(-1,-1));
res += mat4(0.002297143684700,0.001096114981920,-0.002063823165372,-0.002831894205883,0.000718453666195,0.002864641835913,-0.000368997076293,-0.002972174435854,-0.000331606017426,-0.000546475523151,-0.000240033477894,0.000483410258312,0.001441235537641,-0.003093264065683,-0.005172150209546,0.002193757565692) * MODEL10_texOff(vec2(-1,0));
res += mat4(0.005301937926561,0.005342379678041,-0.001706626731902,-0.004473838955164,-0.003655291395262,-0.004001202061772,0.003907867707312,0.003696902655065,-0.005013942718506,-0.001948024146259,0.007401577662677,0.004790849052370,0.002616211306304,0.006257716566324,0.005193833261728,0.002533172955737) * MODEL10_texOff(vec2(-1,1));
res += mat4(-0.003223904874176,0.000681167817675,-0.004721654579043,-0.002097698161379,0.009676163084805,0.001701526809484,-0.000121613418742,-0.000348125322489,0.015269116498530,-0.007983606308699,-0.000045282715291,-0.004206545185298,-0.022385271266103,-0.001400005421601,0.003924394026399,0.001180181279778) * MODEL10_texOff(vec2(0,-1));
res += mat4(-0.059580016881227,0.016831269487739,0.041291773319244,-0.002211477374658,0.047261409461498,-0.024505887180567,-0.031320895999670,0.007939832285047,0.000881933956407,-0.055415395647287,-0.006999166216701,0.055299498140812,0.008642817847431,0.063030764460564,0.026791851967573,-0.027602255344391) * MODEL10_texOff(vec2(0,0));
res += mat4(0.001908730017021,0.014811386354268,0.012923950329423,-0.038504950702190,0.001112214755267,-0.011160719208419,-0.023488290607929,0.029566459357738,-0.004456651862711,-0.005988520104438,0.002440280281007,0.024153156206012,0.002091683214530,-0.001674621715210,-0.017778240144253,-0.033755194395781) * MODEL10_texOff(vec2(0,1));
res += mat4(-0.007204970810562,0.000270189571893,0.001976221101359,-0.001835595699959,-0.001392211765051,0.000087446773250,0.000162218566402,-0.001004379824735,-0.008702191524208,-0.001890602405183,-0.000630428723525,0.001520608668216,0.004693305585533,0.000959699216764,-0.000835112121422,-0.001869295374490) * MODEL10_texOff(vec2(1,-1));
res += mat4(0.019654070958495,0.005311375949532,-0.003115185070783,-0.002333891578019,0.004960021004081,-0.011751674115658,-0.005974897649139,0.000214583065826,-0.005122040398419,0.014137597754598,0.013309416361153,-0.008803678676486,-0.032731398940086,-0.017793536186218,0.008452695794404,0.013950807973742) * MODEL10_texOff(vec2(1,0));
res += mat4(-0.000822128844447,-0.000575175799895,-0.008485911414027,0.000500072434079,-0.001335618901066,-0.010411920957267,-0.004932669457048,0.013181421905756,-0.002256608800963,-0.001816480886191,0.002887892769650,-0.000860274245497,0.001886895741336,-0.000713570741937,0.001837095478550,-0.013453142717481) * MODEL10_texOff(vec2(1,1));
res += mat4(-0.006648580078036,-0.003189660608768,-0.001289530075155,-0.000120133423479,0.001131661352701,-0.000796827254817,-0.000265109963948,-0.000107699139335,0.000817699474283,-0.003929889295250,-0.000110431428766,0.003003335557878,-0.003453006036580,-0.001555126393214,-0.000385806692066,-0.000514964107424) * MODEL11_texOff(vec2(-1,-1));
res += mat4(-0.005084638483822,-0.010300113819540,-0.011010743677616,-0.010298185050488,0.003062254516408,0.001914617139846,0.003034458262846,0.002256358042359,0.001208378816955,0.001818243646994,-0.000360053760232,0.001540369354188,-0.001729210605845,-0.000676856492646,-0.001500861602835,-0.002363203093410) * MODEL11_texOff(vec2(-1,0));
res += mat4(0.001075812033378,0.001333010615781,0.000354086281732,-0.000038997652155,0.002014623489231,0.000637085759081,0.000880148378201,0.003607576712966,0.000905972439796,0.000970353838056,0.000608002650551,0.000566873233765,-0.000325130444253,-0.000703712983523,-0.001516246702522,-0.002831676742062) * MODEL11_texOff(vec2(-1,1));
res += mat4(0.015493567101657,0.005818839184940,0.000321745115798,-0.002456558169797,-0.010069387033582,0.003033113898709,0.006390734575689,0.003406579373404,-0.024423521012068,-0.015185102820396,0.022451456636190,0.014131824485958,0.005213819444180,-0.003338613314554,-0.007137550972402,-0.006622728891671) * MODEL11_texOff(vec2(0,-1));
res += mat4(0.019530650228262,0.029657533392310,0.036005266010761,0.032369155436754,-0.013357002288103,0.004852029494941,0.008236816152930,-0.014082260429859,0.008332534693182,0.005733755417168,0.000869957788382,-0.003950596787035,0.012103471904993,0.021211743354797,0.017558773979545,0.007100192364305) * MODEL11_texOff(vec2(0,0));
res += mat4(-0.000207192482776,-0.000031978652260,-0.000793265702669,0.004702098201960,0.006965775042772,-0.003977308515459,-0.010478879325092,-0.007311452180147,-0.002341425279155,-0.004806109704077,-0.002251447411254,0.003257438307628,-0.011729186400771,-0.018596170470119,-0.014787733554840,0.001799587626010) * MODEL11_texOff(vec2(0,1));
res += mat4(-0.013146443292499,-0.005732902325690,0.001375564723276,0.004242797847837,-0.013884808868170,-0.000771669554524,0.010255135595798,0.009616426192224,-0.012249176390469,-0.017705269157887,0.008505690842867,0.013987583108246,0.006606028880924,0.000129968335386,-0.003095686202869,-0.002499705879018) * MODEL11_texOff(vec2(1,-1));
res += mat4(-0.008091084659100,-0.013812967576087,-0.017498547211289,-0.018482301384211,0.025716874748468,0.009930411353707,-0.012547677382827,-0.022556956857443,0.002638458507136,0.003231201320887,0.003629148006439,0.003900663461536,0.001810090965591,0.010488430969417,0.013375429436564,0.011468308046460) * MODEL11_texOff(vec2(1,0));
res += mat4(0.001384164555930,0.000989154097624,-0.000556755112484,-0.003173121949658,-0.006467686966062,-0.011554050259292,-0.001190536888316,0.022242454811931,-0.001732241013087,-0.001979018561542,-0.000535346800461,0.002790177706629,0.002028521848843,0.001059809001163,-0.000852548226248,-0.002874781144783) * MODEL11_texOff(vec2(1,1));
res += mat4(-0.000222279748414,-0.000858838844579,-0.000185474127647,0.000205672593438,-0.011663660407066,-0.005857677198946,-0.006725833285600,-0.007456293329597,-0.002700357465073,-0.000272514327662,-0.002227429999039,-0.002064883243293,-0.007724404800683,-0.005412157159299,-0.003293475136161,-0.001402430585586) * MODEL12_texOff(vec2(-1,-1));
res += mat4(0.001705418573692,0.000834614969790,0.000564436835703,0.000728645594791,-0.000986053491943,0.008688754402101,0.011220408603549,-0.005760681815445,0.004889792297035,-0.001588126295246,-0.001765421824530,-0.001407605828717,-0.008709895424545,-0.009528123773634,-0.008573096245527,-0.008076097816229) * MODEL12_texOff(vec2(-1,0));
res += mat4(0.001206395099871,0.001609259517863,0.000768270168919,0.000057429457229,-0.002424861770123,-0.003900237614289,-0.000856523867697,0.000203887175303,0.001634413958527,-0.004478340502828,-0.004629517905414,0.005143433343619,-0.002425491577014,-0.002030892297626,-0.002115945331752,-0.004471118561924) * MODEL12_texOff(vec2(-1,1));
res += mat4(-0.003648958401754,-0.005099560134113,-0.004678787663579,-0.002226591808721,0.027697427198291,-0.017672905698419,-0.011706961318851,-0.002144452417269,0.031907361000776,0.017145035788417,-0.011636938899755,0.000697344250511,-0.003558267373592,-0.011158871464431,-0.011655407026410,-0.007220679428428) * MODEL12_texOff(vec2(0,-1));
res += mat4(0.005093627609313,0.002745554782450,0.000260502158199,-0.001864703372121,-0.037228655070066,-0.049143079668283,0.033217303454876,0.086133062839508,0.023306047543883,0.028221827000380,-0.047082144767046,-0.046442829072475,0.023269623517990,0.024056510999799,0.020889373496175,0.011474006809294) * MODEL12_texOff(vec2(0,0));
res += mat4(-0.002794113941491,-0.003828142536804,-0.001302424003370,0.004673084244132,-0.001354439067654,0.002655790420249,0.008234621025622,0.002398322569206,-0.002805043011904,-0.003906507510692,-0.004796093329787,-0.004610436037183,-0.005514563061297,-0.002485866891220,0.005095950793475,0.015470789745450) * MODEL12_texOff(vec2(0,1));
res += mat4(-0.012835531495512,0.002903808606789,0.003432146972045,-0.002713842783123,0.001632237108424,0.001493733259849,0.002271793782711,0.001636189757846,0.001232438953593,-0.007554676849395,0.001215800410137,-0.000573131488636,-0.001414540456608,-0.008265774697065,-0.010702414438128,-0.008025939576328) * MODEL12_texOff(vec2(1,-1));
res += mat4(-0.003597363596782,-0.044018171727657,-0.052242137491703,-0.033598121255636,0.008951859548688,-0.000667973770760,-0.008763192221522,-0.002715968294069,0.005841317586601,-0.007665073964745,0.003563953796402,0.021045502275229,0.002904080552980,0.006461656186730,0.009448255412281,0.007412408944219) * MODEL12_texOff(vec2(1,0));
res += mat4(-0.006815179716796,0.004014917649329,0.014227068051696,0.016782704740763,0.003635816741735,0.006572311278433,-0.000745527737308,-0.001591256354004,0.000588728755247,-0.001286435290240,-0.003321428317577,0.003108042990789,-0.002405348233879,-0.003525116480887,-0.004066435154527,-0.001069477060810) * MODEL12_texOff(vec2(1,1));
return res;
}

//!HOOK LUMA
//!WHEN OUTPUT.w LUMA.w 3.200 * > OUTPUT.h LUMA.h 3.200 * > *
//!WIDTH LUMA.w 4 *
//!HEIGHT LUMA.h 4 *
//!BIND SUBCONV1
//!BIND SUBCONV2
//!BIND SUBCONV3
//!BIND SUBCONV4
//!BIND LANCZOS3
//!DESC [AiUpscale_HQ_4x_Photo] depth to space

vec4 hook()
{
vec2 fcoord = fract(SUBCONV1_pos * SUBCONV1_size);
vec2 base = SUBCONV1_pos + (vec2(0.5) - fcoord) * SUBCONV1_pt;
ivec2 index = ivec2(fcoord * vec2(4));
mat4 res = mat4(SUBCONV1_tex(base),SUBCONV2_tex(base),SUBCONV3_tex(base),SUBCONV4_tex(base));
return vec4(res[index.x][index.y] + float(LANCZOS3_texOff(0)), 0, 0, 1);
}
